Add type declarations for simple-mode #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Those are based on the type definitions in wrote for codemirror5 in DefinitelyTyped, omitting the
modeproperty of the rule that does not exist anymore, and changingmetatolanguageData.The weird generic on
simpleMode<K extends string>()is because typescript does not allow defining a different type forlanguageDatawhen usingP in stringinstead of a generic (that will be inferred as the the union of state names instead of the fullstringtype)Thanks!