-
Notifications
You must be signed in to change notification settings - Fork 202
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: add NoInfer to IntrinsicNodeParser #2133
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,13 @@ type ResultUpper = Uppercase<Result>; | |
type ResultLower = Lowercase<ResultUpper>; | ||
type ResultCapitalize = Capitalize<Result>; | ||
type ResultUncapitalize = Uncapitalize<ResultCapitalize>; | ||
type ResultNoInfer = NoInfer<Result>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure this isn't how Please create a separate test with a code like: // (I wrote this out of my head)
function test<T>(value: NoInfer<T>): T { return value }
// create a function with type constraints as well (test<T extends something>())
export const MyObject = {
str: test('asd'),
// more samples with objects, type references, and so on...
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but thanks for working in this <3 |
||
|
||
export interface MyObject { | ||
result: Result; | ||
resultUpper: ResultUpper; | ||
resultLower: ResultLower; | ||
resultCapitalize: ResultCapitalize; | ||
resultUncapitalize: ResultUncapitalize; | ||
resultNoInfer: ResultNoInfer; | ||
} |
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.
tests?