-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
38 lines (31 loc) · 894 Bytes
/
types.d.ts
File metadata and controls
38 lines (31 loc) · 894 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
28
29
30
31
32
33
34
35
36
37
38
declare module "babel-relay-plugin/lib/RelayQLTransformer" {
import * as bt from "babel-types"
interface TransformerOptions {
inputArgumentName?: string,
snakeCase: boolean,
substituteVariables: boolean,
validator?: Function
}
interface TextTransformOptions {
documentName: string,
enableValidation: boolean,
propName?: string,
tagName: string,
}
class RelayQLTransformer {
constructor(schema, options: TransformerOptions)
transform(t, node: bt.TemplateLiteral, options: TextTransformOptions): bt.Expression
}
export = RelayQLTransformer
}
declare module "babel-relay-plugin/lib/RelayTransformError" {
class RelayTransformError {
message: string
loc: any
stack: string
}
export = RelayTransformError
}
declare module "graphql/utilities/buildClientSchema" {
export function buildClientSchema(schema: any): any
}