Skip to content

Commit 5368307

Browse files
committed
🐛 Allow arbitrary event name in autocmd
1 parent 708e045 commit 5368307

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

denops_std/autocmd/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
// https://github.com/microsoft/TypeScript/issues/29729#issuecomment-567871939
2+
// deno-lint-ignore ban-types
3+
type AnyString = string & {};
4+
15
export type AutocmdEvent =
6+
| AnyString
27
| "BufAdd"
38
| "BufDelete"
49
| "BufEnter"

0 commit comments

Comments
 (0)