Skip to content

Commit

Permalink
ReturnType test
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleShit committed Jun 5, 2024
1 parent ac224eb commit 417cc91
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ ruleTester.run('require-types-exports', rule, {
}
`,

`
export function f<T extends ReturnType<() => string>>(arg: T) {
return arg;
}
`,

`
export class Wrapper {
work(other: this) {}
Expand Down

0 comments on commit 417cc91

Please sign in to comment.