yaml-language-server
Version:
10 lines (9 loc) • 409 B
TypeScript
import { SingleYAMLDocument } from '../parser/yamlParser07';
import type { JSONDocument } from '../parser/jsonDocument';
/**
* Retrieve schema if declared as modeline.
* Public for testing purpose, not part of the API.
* @param doc
*/
export declare function getSchemaFromModeline(doc: SingleYAMLDocument | JSONDocument): string | undefined;
export declare function isModeline(lineText: string): boolean;