-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
30 lines (27 loc) · 779 Bytes
/
index.d.ts
File metadata and controls
30 lines (27 loc) · 779 Bytes
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
export interface ActionConfig {
code: string
title?: string
description?: string;
namespace?: string;
codeConfig?: string;
versionMajor?: string | number;
versionMinor?: string | number;
versionPatch?: string | number;
hashId?: string;
}
export interface ConvertOptions {
defineComponent?: boolean = false;
createLabel?: boolean = false;
toEsm?: boolean = true;
usePipedreamLintRules?: boolean = true;
appPlaceholder?: string = "app_placeholder";
addPlaceholderAppProp?: boolean = false;
}
export interface ConvertResult {
code: string;
appSlug?: string;
componentSlug?: string;
legacyHashId?: string;
componentKey?: string;
}
export declare function convert(actionConfig: ActionConfig, options: ConvertOptions): Promise<ConvertResult>