@blitz/textmate
Version:
TextMate Grammars for StackBlitz
16 lines (15 loc) • 761 B
TypeScript
import { GrammarDefinition, LanguageDefinition } from './entities';
/**
* Retrieve the location of the grammar file for the provided definition.
*
* @param definition - definition to retrieve the grammar location for.
* @returns location of the grammar file.
*/
export declare const getGrammarLocation: (definition: GrammarDefinition | LanguageDefinition) => string | undefined | never;
/**
* Retrieve the location of the language configuration file for the provided language definition.
*
* @param definition - language definition to retrieve the language configuration location for.
* @returns location of the language configuration file.
*/
export declare const getLanguageConfigurationLocation: (definition: LanguageDefinition) => string | never;