forked from adamlaska/ts-graphql-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
27 lines (23 loc) · 840 Bytes
/
types.ts
File metadata and controls
27 lines (23 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { TsGraphQLPluginConfigOptions } from '../types';
import { TypeGenAddonFactory } from '../typegen';
export type OperationType = 'query' | 'mutation' | 'subscription' | 'fragment' | 'complex' | 'other';
export type TsGraphQLPluginConfig = Omit<TsGraphQLPluginConfigOptions, 'typegen'> & {
typegen: {
addonFactories: TypeGenAddonFactory[];
};
};
export interface ManifestDocumentEntry {
fileName: string;
type: OperationType;
operationName?: string;
fragmentName?: string;
body: string;
tag?: string;
documentStart: { line: number; character: number };
documentEnd: { line: number; character: number };
templateLiteralNodeStart: { line: number; character: number };
templateLiteralNodeEnd: { line: number; character: number };
}
export interface ManifestOutput {
documents: ManifestDocumentEntry[];
}