Skip to content

Commit 709ea2d

Browse files
authored
Update acode.d.ts
1 parent 8f45ba8 commit 709ea2d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

typings/acode.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export default class Acode {
2+
export default class acode {
33
/**
44
* Define a module
55
* @param {string} name
@@ -56,7 +56,7 @@ export default class Acode {
5656

5757
addIcon(className: string, src: string): void;
5858

59-
async prompt(
59+
prompt(
6060
message: string,
6161
defaultValue: string,
6262
type: 'textarea' | 'text' | 'number' | 'tel' | 'search' | 'email' | 'url',
@@ -68,11 +68,11 @@ export default class Acode {
6868
}
6969
): Promise<any>;
7070

71-
async confirm(title: string, message: string): Promise<boolean>;
71+
confirm(title: string, message: string): Promise<boolean>;
7272

73-
async select(
73+
select(
7474
title: string,
75-
options: string[value: string, text: string, icon: string, disable?: boolean] | string,
75+
options: string[string, string, string, boolean] | string,
7676
opts?: {
7777
onCancel?: () => void;
7878
onHide?: () => void;
@@ -86,9 +86,9 @@ export default class Acode {
8686

8787
type Strings = string[];
8888

89-
async multiPrompt(title: string, inputs: Array<Input | Input[]>, help: string): Promise<Strings>;
89+
multiPrompt(title: string, inputs: Array<Input | Input[]>, help: string): Promise<Strings>;
9090

91-
async fileBrowser(mode: 'file' | 'folder' | 'both', info: string, doesOpenLast: boolean): Promise<import('.').SelectedFile>;
91+
fileBrowser(mode: 'file' | 'folder' | 'both', info: string, doesOpenLast: boolean): Promise<import('.').SelectedFile>;
9292

93-
async toInternalUrl(url:string): Promise<url: string>;
93+
toInternalUrl(url:string): Promise<url: string>;
9494
}

0 commit comments

Comments
 (0)