Add FrozenProcessor interface to types#93
Add FrozenProcessor interface to types#93ChristianMurphy merged 2 commits intounifiedjs:mainfrom remcohaszing:add-frozen-processor
FrozenProcessor interface to types#93Conversation
A frozen processor has the same interface as a regular processor, except `use()` is always disallowed.
This comment has been minimized.
This comment has been minimized.
ChristianMurphy
left a comment
There was a problem hiding this comment.
Nice, that took less changes than I expected.
Looks good, thanks @remcohaszing! 🙇
|
One note by the way. |
I think removing it from the typing is inline with the spirit of TypeScript. const a = {}
a.test
//^^^^
// Property 'test' does not exist on type '{}'.
edit: we could add |
I don’t think this adds much benefit. |
FrozenProcessor interface to types
|
Released in 9.1.0! |
A frozen processor has the same interface as a regular processor, except
use()is always disallowed.
This is related to remarkjs/remark#513