Skip to content

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

Merged
merged 3 commits into from
Sep 3, 2018
Merged

Add type definition tests #18

merged 3 commits into from
Sep 3, 2018

Conversation

SamVerschueren
Copy link
Contributor

Added tests for the type definitions. While I was working on them, I also noticed that some things where missing/wrong in the typings.

@@ -39,6 +39,7 @@ export interface Options {
* Creates directories for you as needed.
*
* @example
*
Copy link
Contributor Author

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

Copy link
Contributor

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 () => {
Copy link
Contributor

@DenisCarriere DenisCarriere Aug 29, 2018

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! 👍

Copy link
Contributor

@DenisCarriere DenisCarriere left a 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!

@sindresorhus sindresorhus merged commit 514b04c into master Sep 3, 2018
@sindresorhus sindresorhus deleted the tsd-check branch September 3, 2018 04:44
@sindresorhus
Copy link
Owner

Very thorough. Great work as always, Sam. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants