b63ea4b6df
* Fix declaration emit for property references of imported object literal types * Add declaration file to test
27 lines
410 B
TypeScript
27 lines
410 B
TypeScript
// @noTypesAndSymbols: true
|
|
// @esModuleInterop: true
|
|
// @declaration: true
|
|
|
|
// @Filename: test.ts
|
|
import Op from './op';
|
|
import { Po } from './po';
|
|
|
|
export default function foo() {
|
|
return {
|
|
[Op.or]: [],
|
|
[Po.ro]: {}
|
|
};
|
|
}
|
|
|
|
// @Filename: op.ts
|
|
declare const Op: {
|
|
readonly or: unique symbol;
|
|
};
|
|
|
|
export default Op;
|
|
|
|
// @Filename: po.d.ts
|
|
export declare const Po: {
|
|
readonly ro: unique symbol;
|
|
};
|