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

Bad signature in `d.ts` #58

Closed evilz closed 6 years ago

evilz commented 6 years ago

this

  export function test(str: string, options?: GrayMatterOption): string;

should be

  export function test(str: string, options?: GrayMatterOption): boolean;
doowb commented 6 years ago

Thanks, would you like to do a PR?

evilz commented 6 years ago

Ok I'll try to do this today ;p