remarkjs / remark-rehype

plugin that turns markdown into HTML to support rehype
https://remark.js.org
MIT License
258 stars 18 forks source link

Fix type definitions #17

Closed januswel closed 3 years ago

januswel commented 3 years ago

This PR fixes #16

Tuple Type is added in TypeScript 3.1

This causes the error on #16 because type definition [Processor?, Options?] is treated as Tuple Type

refert: https://www.typescriptlang.org/docs/handbook/2/objects.html#tuple-types