Skip to content

Fixed broken TypeScript type definitions - #230

Merged
cookpete merged 2 commits into
cookpete:masterfrom
k7sleeper:fix-types
Sep 6, 2017
Merged

Fixed broken TypeScript type definitions#230
cookpete merged 2 commits into
cookpete:masterfrom
k7sleeper:fix-types

Conversation

@k7sleeper

Copy link
Copy Markdown

Fix #229

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

export interface SourceSpec {

Copy link
Copy Markdown
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.

@k7sleeper k7sleeper Sep 6, 2017

Copy link
Copy Markdown
Author

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.

Comment thread index.d.ts Outdated
type: string;
}

export interface TrackSpec {

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants