swc/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.ts

12 lines
225 B
TypeScript

// @strictFunctionTypes: false
// @strictBindCallApply: true
// Repro from #32964
interface Foo { blub: string };
function fn(this: Foo) {}
type Test = ThisParameterType<typeof fn>;
const fb = fn.bind({ blub: "blub" });