refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
@ -39,9 +39,8 @@ export class Hpml {
|
||||
}), ...initAiLib(this)}, {
|
||||
in: (q) => {
|
||||
return new Promise(ok => {
|
||||
os.dialog({
|
||||
os.inputText({
|
||||
title: q,
|
||||
input: {}
|
||||
}).then(({ canceled, result: a }) => {
|
||||
ok(a);
|
||||
});
|
||||
|
Reference in New Issue
Block a user