Files
tsgo/testdata/tests/cases/compiler/declarationEmitObjectLiteralMethodGenericNoSuffix.ts
2026-05-19 16:33:28 +00:00

13 lines
287 B
TypeScript

// @declaration: true
export const o = {
foo<M extends string>(): void { },
bar<M extends string>(): void { },
};
export const o2 = {
foo<T>(value: T): T { return value; },
bar<T>(value: T): T { return value; },
baz<T, U>(a: T, b: U): [T, U] { return [a, b]; },
};