14 lines
228 B
TypeScript
14 lines
228 B
TypeScript
//// [symbolDeclarationEmit1.ts]
|
|
class C {
|
|
[Symbol.toPrimitive]: number;
|
|
}
|
|
|
|
//// [symbolDeclarationEmit1.js]
|
|
class C {
|
|
}
|
|
|
|
|
|
//// [symbolDeclarationEmit1.d.ts]
|
|
declare class C {
|
|
[Symbol.toPrimitive]: number;
|
|
}
|