@mintlify/common
Version:
Commonly shared code within Mintlify
23 lines (22 loc) • 592 B
TypeScript
import { MetaOptions } from './metaOptions.js';
export type Meta = {
filename?: string;
icon?: string;
lang?: string;
lines?: boolean;
wrap?: boolean;
expandable?: boolean;
highlight?: number[];
focus?: number[];
theme?: string;
twoslash?: boolean;
};
export type MetaParserConfig = {
[K in keyof Meta]: {
keys: string[];
parser: (metaOptions: MetaOptions) => Meta[K];
defaultValue?: Meta[K];
};
};
export declare const META_PARSER_CONFIG: MetaParserConfig;
export declare function parseMetaString(input: string): Meta;