File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function input(
48
48
denops : Denops ,
49
49
prompt : string ,
50
50
text = "" ,
51
- completion ?: BuiltinCompletion | string ,
51
+ completion ?: BuiltinCompletion | ( string & { _ ?: never } ) ,
52
52
) : Promise < string > {
53
53
if ( completion && ! isValidBuiltinCompletion ( completion ) ) {
54
54
if (
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ export type CustomCompletion = (
12
12
export type InputOptions = {
13
13
prompt ?: string ;
14
14
text ?: string ;
15
- completion ?: fn . BuiltinCompletion | string | CustomCompletion ;
15
+ completion ?:
16
+ | fn . BuiltinCompletion
17
+ | ( string & { _ ?: never } )
18
+ | CustomCompletion ;
16
19
// Guard `input` by `inputsave` and `inputrestore`
17
20
inputsave ?: boolean ;
18
21
} ;
You can’t perform that action at this time.
0 commit comments