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

Fixed broken TypeScript type definitions #230

Merged
merged 2 commits into from
Sep 6, 2017

Conversation

k7sleeper
Copy link

Fix #229

index.d.ts Outdated
@@ -1,7 +1,19 @@
import * as React from 'react';

export interface SourceSpec {
Copy link
Owner

Choose a reason for hiding this comment

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

Is there any point export ing SourceSpec and TrackSpec? They are only used in this file.

Copy link
Author

@k7sleeper k7sleeper Sep 6, 2017

Choose a reason for hiding this comment

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

They are only used in this file.

Sure?
If you want to prepare an object of type SourceSpec somewhere in your source you'll be happy to be able to import that type.

index.d.ts Outdated
type: string;
}

export interface TrackSpec {
Copy link
Owner

Choose a reason for hiding this comment

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

I think the names SourceProps and TrackProps make more sense?

Copy link
Author

Choose a reason for hiding this comment

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

+1

@cookpete cookpete merged commit 605cb02 into cookpete:master Sep 6, 2017
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.

None yet

2 participants