UNPKG

446 BTypeScriptView Raw
1interface Snippet {
2 group: string;
3 name: string;
4 code: string;
5}
6
7type Snippets = Snippet[];
8
9interface CreateUrlOptions {
10 baseUrl?: string;
11 code?: string;
12 themes?: string[];
13 widths?: number[];
14}
15
16export const createUrl: (options: CreateUrlOptions) => string;
17
18interface CreatePreviewUrlOptions {
19 baseUrl?: string;
20 code?: string;
21 theme?: string;
22}
23
24export const createPreviewUrl: (options: CreatePreviewUrlOptions) => string;