This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.
Feature Request: Support intersections of object types #886
Closed
Description
TypeScript code: (this is a minimal example; I have a complex usecase involving builders in which I don't think there are alternatives)
export const x: {a: number}&{b: string} = {
a: 42,
b: 'hi!'
};
Actual Closure Code:
exports = {};
/** @type {?} */
exports.x = {
a: 42,
b: 'hi!'
};
Expected Closure Code: (what you get if you replace }&{
with ,
)
exports = {};
/** @type {{a: number, b: string} */
exports.x = {
a: 42,
b: 'hi!'
};
Metadata
Metadata
Assignees
Labels
No labels