UNPKG

419 BTypeScriptView Raw
1export interface MarkdownExample {
2 type: 'markdown';
3 content: string;
4 settings?: Record<string, any>;
5}
6export interface CodeExample {
7 type: 'code';
8 content: string;
9 lang?: string | null;
10 settings?: Record<string, any>;
11}
12export interface RuntimeCodeExample extends CodeExample {
13 evalInContext(a: string): () => any;
14}
15export declare type Example = RuntimeCodeExample | MarkdownExample;