Skip to content
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

Update tape.d.ts for tape v4.2.2 #6976

Merged
merged 2 commits into from
Dec 10, 2015
Merged

Conversation

haoqunjiang
Copy link
Contributor

@dt-bot
Copy link
Member

dt-bot commented Nov 28, 2015

tape/tape.d.ts

to author (@Bartvds). Could you review this PR?
👍 or 👎?

Checklist

  • pass the Travis CI test?

// Definitions: https://github.com/borisyankov/DefinitelyTyped

/// <reference path="../node/node.d.ts" />

declare module 'tape' {
export = tape;
export default tape;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this right?

https://github.com/substack/tape/blob/master/index.js#L19
tape does not have exports.default = module.exports; syntax.
export default tape; is not compatible export = tape;.

@haoqunjiang
Copy link
Contributor Author

Oops.
I was thinking about using this module with the ES6 import syntax.
Seems I need to use TS 1.8 with --allowSyntheticDefaultImports option.

It's fixed now.

@haoqunjiang
Copy link
Contributor Author

Just squashed to get a clean git history.
ping @vvakame

vvakame added a commit that referenced this pull request Dec 10, 2015
Update tape.d.ts for tape v4.2.2
@vvakame vvakame merged commit 31c052d into DefinitelyTyped:master Dec 10, 2015
@vvakame
Copy link
Member

vvakame commented Dec 10, 2015

thanks mate!

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