mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
178 B
TypeScript
11 lines
178 B
TypeScript
// @declaration: true
|
|
|
|
export const obj1 = {
|
|
id<T>(value: T) {
|
|
return value;
|
|
},
|
|
pair<T>(left: T, right: T) {
|
|
return [left, right];
|
|
},
|
|
} as const;
|