File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
monaco-graphql-webpack/src
packages/monaco-graphql/src/typings Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { render } from 'react-dom' ;
3
3
import GraphiQL from 'graphiql' ;
4
- import 'graphiql/graphiql.css' ;
5
4
6
5
const Logo = ( ) => < span > { 'My Corp' } </ span > ;
7
6
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ module.exports = {
52
52
test : / \. s v g $ / ,
53
53
use : [ { loader : 'svg-inline-loader' } ] ,
54
54
} ,
55
+ {
56
+ test : / \. ( w o f f | w o f f 2 | e o t | t t f | o t f ) $ / ,
57
+ use : [ 'file-loader' ] ,
58
+ } ,
55
59
] ,
56
60
} ,
57
61
resolve : {
Original file line number Diff line number Diff line change 3
3
import 'regenerator-runtime/runtime' ;
4
4
import 'monaco-graphql/esm/monaco.contribution' ;
5
5
6
+ // eslint-disable-next-line spaced-comment
7
+ /// <reference path='../../../node_modules/monaco-editor/monaco.d.ts'/>
8
+ // eslint-disable-next-line spaced-comment
9
+ /// <reference path='../../../packages/monaco-graphql/src/typings/monaco.d.ts'/>
10
+
6
11
// NOTE: using loader syntax becuase Yaml worker imports editor.worker directly and that
7
12
// import shouldn't go through loader syntax.
8
13
// @ts -ignore
Original file line number Diff line number Diff line change 9
9
/// <reference path='../../../../node_modules/monaco-editor/monaco.d.ts'/>
10
10
11
11
declare module monaco . languages . graphql {
12
- import type {
13
- SchemaLoader ,
14
- SchemaConfig as SchemaConfiguration ,
15
- } from 'graphql-languageservice' ;
12
+ import type { SchemaLoader , SchemaConfig } from 'graphql-languageservice' ;
16
13
17
14
import type { GraphQLSchema } from 'graphql' ;
18
15
import type { Options as PrettierConfig } from 'prettier' ;
@@ -23,7 +20,7 @@ declare module monaco.languages.graphql {
23
20
dispose ( ) : void ;
24
21
}
25
22
26
- export type SchemaConfig = SchemaConfiguration ;
23
+ export type SchemaConfig = SchemaConfig ;
27
24
28
25
export interface IEvent < T > {
29
26
( listener : ( e : T ) => any , thisArg ?: any ) : IDisposable ;
@@ -111,7 +108,7 @@ declare module monaco.languages.graphql {
111
108
112
109
export interface api extends MonacoGraphQLApi { }
113
110
114
- // export const graphqlDefaults: LanguageServiceDefaults;
111
+ export const graphqlDefaults : LanguageServiceDefaults ;
115
112
}
116
113
117
114
// declare module ''monaco-editor-core/esm/vs/editor/editor.worker';
You can’t perform that action at this time.
0 commit comments