Skip to content

FindEditorOptionsKeyById

原文链接

https://microsoft.github.io/monaco-editor/docs.html#types/editor.FindEditorOptionsKeyById.html

ts
FindEditorOptionsKeyById<T>: {
    [K in keyof EditorOptionsType]: EditorOptionsType[K]["id"] extends T
        ? K
        : never
}[keyof EditorOptionsType]