Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Upgrade project to TypeScript #681
Upgrade project to TypeScript #681
Changes from all commits
4d35f14
1cb9e4c
4a88523
c3a3391
4af1025
b8199fc
545dd63
3d3f9bf
4042ea4
c9c064c
a15760a
35cf18a
136f230
cf12eab
8dcca4a
dbf0a04
457b562
84b9e40
fa3fef9
d5d44df
5865dd3
182f932
bf20194
e694627
165c770
afd1310
541de60
b322dad
b4dd4d0
8b83e60
df58b04
38695d5
7dbd94e
ef22592
35b8f9f
b4ced8f
82a14d9
7360edb
c5c6660
211330a
1265d48
a43cb61
65a0322
0e83b1e
0a9b545
c63f53d
a91314b
e6c8089
6fe486e
170cd41
30e83c4
9cba274
b95beaf
66146f4
726cc3c
db1f746
5dc675d
2fb4055
c8b7748
3775a4b
fbae4f1
c787ab1
3dac9b9
8668add
4a8dda0
383d677
cd2c76d
5263659
a48f2fd
3c89ef3
b7a084d
cb58e76
e22105c
aa98683
cd6ba8f
cad6cc4
1d246cd
5e13d2b
3752ce1
a1da120
ce7b912
30c018b
3b7d463
e6a5c54
0b21c79
df7c94e
337884c
280262c
7579c3b
a91a1c2
0c31558
517ac95
a7c9349
0124186
1917422
552308e
a577f7e
c5cb89e
59fdf60
6a6fb7e
7161abe
82d5a1a
af9b1e0
9e02c1f
94f61f6
d05f2ce
a590bf3
cfd92de
c51e3ee
e435c52
6714dfb
5e0a085
43085ac
99e81d1
2f98f06
21a4899
64acae3
d5cf1ab
e965fac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type here is
undefined | string | null
- do we actually need thenull
value? Coupled with thenull
assignment on L57, that may be a change in semantics!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was directly translated from what was there before -
defaultProps
assignednull
tohotkey
, and it also wasn't marked withisRequired
, hence the optional marker here. Would you like me to change this?And also, this is something I encountered in .SHIFT, too. If I remove the optional property from
hotkey
here, if you don't pass a value tohotkey
when creating theNavigatorLine
component, then it gives this error:So with TypeScript, how do you factor in default values like this without making the param optional?