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

fix ofType syntax #2209

Merged
merged 3 commits into from
Mar 7, 2018
Merged

fix ofType syntax #2209

merged 3 commits into from
Mar 7, 2018

Conversation

giladgray
Copy link
Contributor

#2132 (comment) pointed out a bug in how we were defining our ofType methods for generic components. This PR fixes all usages.

cc @izikorgad

@giladgray giladgray requested a review from adidahiya March 7, 2018 00:44
@@ -63,10 +63,6 @@ export class Tree<T = {}> extends React.Component<ITreeProps<T>, {}> {

private nodeRefs: { [nodeId: string]: HTMLElement } = {};

constructor(props?: ITreeProps<T>, context?: any) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@izikorgad optional props is not compatible with React typings in strict mode, so we simply have to define the props argument in all the constructor types.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's right...

@blueprint-bot
Copy link

fix ofType syntax

Preview: documentation | landing | table

@blueprint-bot
Copy link

fix DRP test flake?

Preview: documentation | landing | table

@blueprint-bot
Copy link

actually fix DRP test

Preview: documentation | landing | table

@adidahiya adidahiya merged commit a9ba17c into develop Mar 7, 2018
@adidahiya adidahiya deleted the gg/generics branch March 7, 2018 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants