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
refactor: publishHogeStreamとStreamのEventEmitterに型定義する #7769
refactor: publishHogeStreamとStreamのEventEmitterに型定義する #7769
Changes from 123 commits
987c98f
225805d
f74f4ff
08576c4
06c0373
ba1c57c
9a089e5
3bde3e5
e9b9afb
110de16
47e0e32
75015c7
ee03cd6
07a9744
7ab9700
d200424
c86ac1c
93fd76f
f89a326
abbeb9a
02dbdc5
20c26c9
ca82538
dd175a8
70740c5
ac3dbcb
3500705
f4652ec
5db2892
f6853b2
4793d1c
be47a12
fd55e2b
b22972f
714f9f2
9fc59a7
1590cf0
cd36102
2c494f1
afb7d5d
6a808ac
8195be9
f6fe073
59580e9
36e86bb
94ebf2a
a7f5ad7
2d387c2
beac5d2
866de46
6df0c45
9ea9814
ace6784
f6915e8
03dcfcf
c7db21e
1cc72fd
8cafc4e
380d357
4ba33f2
4bd42cf
217bf12
0714c56
c05e99b
943f988
04aa4a5
e2550e8
e777fea
3afdfe8
1322622
ce0f374
ef98e4a
ee3457c
96c7954
e749b75
dee40b3
a97fb08
1f82a98
d748871
3eb79b2
c992641
677a6aa
02f6142
295ad35
59ac258
8f67adb
fad785b
b986872
3d54fb2
4dfebbd
2c7daf8
8e9cfb8
5ed7299
df10aa4
3bf7e4b
3a4e3d7
c71844c
77ed1d7
6b72d88
f8df218
3945175
b2f27e9
7fd5152
9f4ad3c
2a59186
9275dec
bdee057
16feea4
5755d15
d3e4843
04c5cc1
9a8bfc6
357d884
8e5386e
6fa583d
1236600
2dd3a89
ea097e2
d924137
8dc6007
0447558
a064ac4
fb4482c
d3cfc45
d7f57cc
eb2e4d4
ee823eb
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.
複数行に渡るなら関数内部で
const { type, body } = data
しちゃってもいいのでは?と思ったり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.
残念なお知らせ: constで展開してもtypeとbodyの型が分離してしまうのは変わらない
ジェネリックで関数を定義しても分離してしまうのでswitch-caseのTypeScriptの仕様なんだと思う
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.
fyi: microsoft/TypeScript#44730 (comment)
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.
fyi: microsoft/TypeScript#46266