Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Use question mark token for optional props #8

Merged
merged 2 commits into from
Jul 16, 2017
Merged

Conversation

mohsen1
Copy link
Contributor

@mohsen1 mohsen1 commented Jul 16, 2017

Instead of

type Props = {foo: number | undefined}

emits

type Props = {foo?: number}

@mohsen1 mohsen1 merged commit 08885f1 into master Jul 16, 2017
@mohsen1 mohsen1 deleted the propsOptional branch February 5, 2018 05:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant