codemirror-graphql
Version:
GraphQL mode and helpers for CodeMirror.
7 lines (5 loc) • 398 B
text/typescript
import type { StreamParser } from '@codemirror/language';
import graphqlModeFactory from '../utils/mode-factory';
// Types of property 'token' are incompatible.
// Type '((stream: StringStream, state: any) => string | null) | undefined' is not comparable to type '(stream: StringStream, state: any) => string | null'.
export const graphql = graphqlModeFactory({}) as unknown as StreamParser<any>;