-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: correctly infer deferred types for top-level promises #7104
Conversation
🦋 Changeset detectedLatest commit: 67e7729 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
isEqual<SerializeFrom<string>, string>(true); | ||
isEqual<SerializeFrom<number>, number>(true); | ||
isEqual<SerializeFrom<boolean>, boolean>(true); | ||
isEqual<SerializeFrom<String>, String>(true); | ||
isEqual<SerializeFrom<Number>, Number>(true); | ||
isEqual<SerializeFrom<Boolean>, Boolean>(true); | ||
isEqual<SerializeFrom<null>, null>(true); | ||
|
||
isEqual<IsNever<SerializeFrom<undefined>>, true>(true); | ||
isEqual<IsNever<SerializeFrom<Function>>, true>(true); | ||
isEqual<IsNever<SerializeFrom<symbol>>, true>(true); | ||
|
||
isEqual<SerializeFrom<[]>, []>(true); | ||
isEqual<SerializeFrom<[string, number]>, [string, number]>(true); | ||
isEqual<SerializeFrom<[number, number]>, [number, number]>(true); | ||
|
||
isEqual<SerializeFrom<ReadonlyArray<string>>, string[]>(true); | ||
isEqual<SerializeFrom<ReadonlyArray<Function>>, null[]>(true); | ||
|
||
isEqual<SerializeFrom<{ hello: "remix" }>, { hello: "remix" }>(true); | ||
isEqual< | ||
SerializeFrom<{ data: { hello: "remix" } }>, | ||
{ data: { hello: "remix" } } | ||
>(true); |
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.
Since we're using type-fest
's Jsonify
now, these tests are no longer testing Remix code.
d4d6128
to
a134ba9
Compare
46c5513
to
0ffe817
Compare
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Fixes #5427