Improve docs/supplemental files for plugins (#5047)

Co-authored-by: Mm2PL <mm2pl+gh@kotmisia.pl>
This commit is contained in:
nerix
2023-12-29 18:12:50 +01:00
committed by GitHub
parent d085ab578f
commit 60d79ef57e
5 changed files with 91 additions and 4 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ declare module c2 {
}
enum EventType {
RegisterCompletions = "RegisterCompletions",
CompletionRequested = "CompletionRequested",
}
type CbFuncCompletionsRequested = (
@@ -35,7 +35,7 @@ declare module c2 {
cursor_position: number,
is_first_word: boolean
) => CompletionList;
type CbFunc<T> = T extends EventType.RegisterCompletions
type CbFunc<T> = T extends EventType.CompletionRequested
? CbFuncCompletionsRequested
: never;