mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
431937b862
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
13 lines
287 B
TypeScript
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]; },
|
|
};
|