-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
36 lines (32 loc) · 1021 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
declare const __DEV__: boolean;
export type Falsy = void | undefined | null | '' | 0 | false;
export type Options = {
/**
*
* @param id id of import
* @param importer
* @returns the import id of ts to generate json schema or a falsy value to ignore.
*/
mapTsId?: (id: string, importer: string) => string | Falsy;
/**
* replace the type export name with a new name
* @param name ts type export name
* @returns json schema export name
*/
mapExportName?: (name: string) => string;
/**
* ts-json-schema-generator config, default:
* ```js
* {
topRef: false,
skipTypeCheck: true,
extraTags: ['faker'],
type: '*' // Or <type-name> if you want to generate schema for that one type only
}
```
*/
config?: Partial<import('ts-json-schema-generator').Config>;
};
export default function typeAsJsonSchemaPlugin(options?: Options): import('rollup').Plugin;
export function defaultResolveTsSource(id): string;
export function defaultMapExportName(sym): string;