-
-
Notifications
You must be signed in to change notification settings - Fork 40
Add type definition tests #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
058056b
to
e65db4e
Compare
@@ -39,6 +39,7 @@ export interface Options { | |||
* Creates directories for you as needed. | |||
* | |||
* @example | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because of a rendering issue. We can remove it though. Eventually it will be fixed (probably). microsoft/TypeScript#15749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is so weird 🤔
I was wondering why the @example
didn't look good, makes sense now
import {expectType} from 'tsd-check'; | ||
import writeJsonFile, {sync, Replacer, SortKeys, JSONStringifyable} from '.'; | ||
|
||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SamVerschueren This must be the most intense Typescript test I've ever seen 😮
Good job! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Very thorough. Great work as always, Sam. ❤️ |
Added tests for the type definitions. While I was working on them, I also noticed that some things where missing/wrong in the typings.