mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
794 B
TypeScript
26 lines
794 B
TypeScript
//// [tests/cases/compiler/declarationEmitInferredUndefinedPropFromFunctionInArray.ts] ////
|
|
|
|
//// [declarationEmitInferredUndefinedPropFromFunctionInArray.ts]
|
|
// repro from https://github.com/microsoft/TypeScript/issues/53914
|
|
|
|
export let b = [{ foo: 0, m() {} }, { bar: 1 }];
|
|
|
|
//// [declarationEmitInferredUndefinedPropFromFunctionInArray.js]
|
|
"use strict";
|
|
// repro from https://github.com/microsoft/TypeScript/issues/53914
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.b = void 0;
|
|
exports.b = [{ foo: 0, m() { } }, { bar: 1 }];
|
|
|
|
|
|
//// [declarationEmitInferredUndefinedPropFromFunctionInArray.d.ts]
|
|
export declare let b: ({
|
|
foo: number;
|
|
m(): void;
|
|
bar?: undefined;
|
|
} | {
|
|
foo?: undefined;
|
|
m?: undefined;
|
|
bar: number;
|
|
})[];
|