Skip to content
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

Unknown intrinsic method: NoInfer #2132

Open
EladBezalel opened this issue Dec 12, 2024 · 4 comments · May be fixed by #2133
Open

Unknown intrinsic method: NoInfer #2132

EladBezalel opened this issue Dec 12, 2024 · 4 comments · May be fixed by #2133

Comments

@EladBezalel
Copy link

When i try to create schema from a type that uses NoInfer i get this error:

Unknown intrinsic method: NoInfer
@domoritz
Copy link
Member

Thanks for the report. Can you provide a minimal reproducible example that demonstrates the issue? I can reopen but without a repo this is not something that can be fixed.

@EladBezalel
Copy link
Author

Sorry, when i try to reproduce with

export class A<T> {
  readonly a: NoInfer<T>
}

or

export type A<T> = NoInfer<T>

i get

error: No root type "A" found

I'll try to understand why and let you know..

I believe the problem is here

export const intrinsicMethods: Record<string, ((v: string) => string) | undefined> = {

@domoritz
Copy link
Member

Ah, I see. Yeah, NoInfer isn't something I have used before so haven't added it. Would love a pull request.

@domoritz domoritz reopened this Dec 12, 2024
@arthurfiorette
Copy link
Collaborator

arthurfiorette commented Dec 13, 2024

This should be very straightforward to implement, @EladBezalel want to attempt a pull request?

Just a T -> T should work for now.

@EladBezalel EladBezalel linked a pull request Dec 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants