UNPKG

codemirror-languageservice

Version:

Integrate a Language Server Protocol compatible language service into CodeMirror

15 lines 405 B
/** * Either a {@link PromiseLike} or the synchronous value. * * @template T * The type to make promise-like. */ export type Promisable<T> = PromiseLike<T> | T; /** * A {@link Promisable} variant of the given type or null or undefined. * * @template T * The regular result type to expect. */ export type LSPResult<T> = Promisable<null | T | undefined | void>; //# sourceMappingURL=types.d.ts.map