Skip to content

Commit 9ec6a07

Browse files
authored
Merge pull request #106 from tani/main
Better getter
2 parents beeba63 + accbd43 commit 9ec6a07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

denops_std/variable/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ export interface Getter {
44
get<T = unknown>(
55
denops: Denops,
66
prop: string,
7-
defaultValue?: T,
7+
defaultValue: T,
8+
): Promise<T>;
9+
get<T = unknown>(
10+
denops: Denops,
11+
prop: string,
812
): Promise<T | null>;
913
}
1014

0 commit comments

Comments
 (0)