UNPKG

657 BTypeScriptView Raw
1interface PluginOption {
2 name: string;
3 package: string;
4 value: string;
5 available(tags: Tags[]): boolean;
6}
7declare enum Tags {
8 browser = "Browser",
9 node = "Node",
10 typescript = "TypeScript",
11 angular = "Angular",
12 react = "React"
13}
14export declare const plugins: Array<PluginOption>;
15export interface Answers {
16 targets: Tags[];
17 config: string;
18 plugins: PluginOption[];
19 schema: string;
20 documents?: string;
21 output: string;
22 script: string;
23 introspection: boolean;
24}
25export declare function init(): Promise<void>;
26export declare function guessTargets(): Promise<Record<Tags, boolean>>;
27export {};