jonschlinkert / gray-matter

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
https://github.com/jonschlinkert
MIT License
3.97k stars 138 forks source link

fix(types): add missing types #86

Closed ianwremmel closed 5 years ago

ianwremmel commented 5 years ago

tsc produced the following error in my project:

Parameter has a name but no type. Did you mean 'arg0: string'?

As far as I can tell, that's because the types specified here are actually treated as names and their types are actually implicitly any.

robertmassaioli commented 5 years ago

I opened a PR for this months ago: https://github.com/jonschlinkert/gray-matter/pull/77

robertmassaioli commented 5 years ago

This has been resolved in: https://github.com/jonschlinkert/gray-matter/pull/74