-
Notifications
You must be signed in to change notification settings - Fork 48.8k
[compiler] Type provider infra for tests #30776
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
Conversation
[ghstack-poisoned]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
[ghstack-poisoned]
[ghstack-poisoned]
export const ModuleTypeResolver = z | ||
.function() | ||
.args(z.string()) | ||
.returns(z.nullable(TypeSchema)); | ||
|
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.
setting .returns()
causes zod to return a function that internally validates the return type when you call it. that's cool but we want to control when the validation happens so i'm switching this to a plain function annotation
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
useFreeze: { | ||
kind: 'hook', | ||
returnType: {kind: 'type', name: 'Any'}, | ||
}, | ||
useFragment: { | ||
kind: 'hook', | ||
returnType: {kind: 'type', name: 'MixedReadonly'}, | ||
noAlias: true, | ||
}, | ||
useNoAlias: { | ||
kind: 'hook', | ||
returnType: {kind: 'type', name: 'Any'}, | ||
returnValueKind: ValueKindEnum.Mutable, | ||
noAlias: 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.
moved from customHooks, which we can soon deprecate since it's already a no-op (we never look up information from it)
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync. [ghstack-poisoned]
Stack from ghstack (oldest at bottom):
Adds snap/sprout support for type providers, with declarations describing some new functions in shared-runtime. This allows us to verify that the type provider infrastructure is working. I had to make a few fixes to workaround limitations in zod, but i think the types here are mostly stable enough that we won't have too much work keeping things in sync.