Closed tyankatsu0105 closed 4 years ago
@jxson @kubosho How about this?
Overall looks pretty good, check-dts
seems like a nice tool.
A couple questions:
test/index.types.ts
file there are no assertions, is that common for positive check-dts
tests?@jxson
In the test/index.types.ts file there are no assertions, is that common for positive check-dts tests?
See: https://github.com/ai/nanoevents/blob/master/test/types.ts check-dts tests with comments whether occurred types error. (I want to use assert like jest or chai....)
There are also calls to console.log in the file, usually calling loggers in tests is undesirable. Are these intentional? (note that running the tests locally I don't see any log output)
For avoiding this ts error.
Okay great,
I just merged #67 which changes the signature of the exported function to fm(string, { allowUnsafe: false })
. Could you sync your PR with master and update the type definitions and the new tests to match?
OK. I'll try ;)
@jxson
I added the type options
to fm.
Also, I updated tests :)
Awesome, thanks for this. Sorry for the late reply, I had a long weekend of no computers ;)
I'll merge and publish this later today...
On Sat, May 23, 2020 at 7:27 AM tyankatsu notifications@github.com wrote:
@jxson https://github.com/jxson I added the type options to fm. Also, I updated tests :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jxson/front-matter/pull/68#issuecomment-633064344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACV4PIV4DTKTZUNDJAVRDRS7MMBANCNFSM4NC3UITA .
Take it easy 😄
Published as front-matter@4.0.1
re https://github.com/jxson/front-matter/issues/61#issuecomment-629298885