@@ -30,26 +30,26 @@ import type {GraphQLConfig, GraphQLProjectConfig} from 'graphql-config';
3030export type TokenPattern = string | ( ( char : string ) => boolean ) | RegExp ;
3131
3232export interface CharacterStream {
33- getStartOfToken: ( ) => number ,
34- getCurrentPosition : ( ) => number ,
35- eol : ( ) => boolean ,
36- sol : ( ) => boolean ,
37- peek : ( ) => string | null ,
38- next : ( ) => string ,
39- eat : ( pattern : TokenPattern ) => string | void ,
40- eatWhile : ( match : TokenPattern ) => boolean ,
41- eatSpace : ( ) => boolean ,
42- skipToEnd : ( ) => void ,
43- skipTo : ( position : number ) => void ,
33+ getStartOfToken: ( ) => number ;
34+ getCurrentPosition: ( ) => number ;
35+ eol: ( ) => boolean ;
36+ sol: ( ) => boolean ;
37+ peek: ( ) => string | null ;
38+ next: ( ) => string ;
39+ eat: ( pattern : TokenPattern ) => string | void ;
40+ eatWhile: ( match : TokenPattern ) => boolean ;
41+ eatSpace: ( ) => boolean ;
42+ skipToEnd: ( ) => void ;
43+ skipTo: ( position : number ) => void ;
4444 match: (
4545 pattern : TokenPattern ,
4646 consume : ?boolean ,
4747 caseFold : ?boolean ,
48- ) => Array < string > | boolean ,
49- backUp : ( num : number ) => void ,
50- column : ( ) => number ,
51- indentation : ( ) => number ,
52- current : ( ) => string ,
48+ ) => Array < string > | boolean ;
49+ backUp: ( num : number ) => void ;
50+ column: ( ) => number ;
51+ indentation: ( ) => number ;
52+ current: ( ) => string ;
5353}
5454
5555// Cache and config-related.
@@ -80,56 +80,56 @@ export type GraphQLConfigurationExtension = {
8080} ;
8181
8282export interface GraphQLCache {
83- getGraphQLConfig: ( ) => GraphQLConfig ,
83+ getGraphQLConfig: ( ) => GraphQLConfig ;
8484
8585 getFragmentDependencies: (
8686 query : string ,
8787 fragmentDefinitions : ?Map < string , FragmentInfo > ,
88- ) = > Promise < Array < FragmentInfo >> ,
88+ ) => Promise < Array < FragmentInfo >> ;
8989
9090 getFragmentDependenciesForAST: (
9191 parsedQuery : ASTNode ,
9292 fragmentDefinitions : Map < string , FragmentInfo > ,
93- ) = > Promise < Array < FragmentInfo >> ,
93+ ) => Promise < Array < FragmentInfo >> ;
9494
9595 getFragmentDefinitions: (
9696 graphQLConfig : GraphQLProjectConfig ,
97- ) = > Promise < Map < string , FragmentInfo >> ,
97+ ) => Promise < Map < string , FragmentInfo >> ;
9898
9999 + updateFragmentDefinition : (
100100 rootDir : Uri ,
101101 filePath : Uri ,
102102 contents : Array < CachedContent > ,
103- ) = > Promise < void > ,
103+ ) = > Promise < void > ;
104104
105105 + updateFragmentDefinitionCache : (
106106 rootDir : Uri ,
107107 filePath : Uri ,
108108 exists : boolean ,
109- ) = > Promise < void > ,
109+ ) = > Promise < void > ;
110110
111111 getSchema: (
112112 appName : ?string ,
113113 queryHasExtensions ?: ?boolean ,
114- ) = > Promise < ?GraphQLSchema > ,
114+ ) => Promise < ?GraphQLSchema > ;
115115
116116 handleWatchmanSubscribeEvent : (
117117 rootDir : string ,
118118 projectConfig : GraphQLProjectConfig ,
119- ) = > ( result : Object ) => void ,
119+ ) => ( result : Object ) => void ;
120120}
121121
122122// online-parser related
123123export interface Position {
124- line : number ,
125- character : number ,
126- lessThanOrEqualTo : ( position : Position ) => boolean ,
124+ line : number ;
125+ character : number ;
126+ lessThanOrEqualTo : ( position : Position ) = > boolean ;
127127}
128128
129129export interface Range {
130- start : Position ,
131- end : Position ,
132- containsPosition : ( position : Position ) => boolean ,
130+ start : Position ;
131+ end : Position ;
132+ containsPosition : ( position : Position ) => boolean ;
133133}
134134
135135export type CachedContent = {
@@ -280,11 +280,11 @@ export type Outline = {
280280} ;
281281
282282export interface DidChangeWatchedFilesParams {
283- changes: FileEvent [ ] ,
283+ changes: FileEvent [ ] ;
284284}
285285export interface FileEvent {
286- uri : string ,
287- type : FileChangeType ,
286+ uri: string ;
287+ type: FileChangeType ;
288288}
289289export const FileChangeTypeKind = {
290290 Created : 1 ,
0 commit comments