mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
50 lines
960 B
TypeScript
50 lines
960 B
TypeScript
//// [tests/cases/compiler/declarationEmitComputedPropertyName1.ts] ////
|
|
|
|
//// [declarationEmitComputedPropertyName1.ts]
|
|
// https://github.com/microsoft/TypeScript/issues/59107
|
|
|
|
declare function create<T extends {}>(): T;
|
|
|
|
export const c = create<{
|
|
data: {
|
|
["a_b_c"]: string;
|
|
["sss"]: string;
|
|
s_d: string;
|
|
queryData?: string;
|
|
["foo bar"]: string;
|
|
};
|
|
["a_b_c"]: string;
|
|
}>();
|
|
|
|
export interface IData {
|
|
["a_b_c"]: string;
|
|
nested: {
|
|
["d_e_f"]: string;
|
|
value: string;
|
|
["qwe rty"]: string;
|
|
};
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [declarationEmitComputedPropertyName1.d.ts]
|
|
export declare const c: {
|
|
data: {
|
|
["a_b_c"]: string;
|
|
["sss"]: string;
|
|
s_d: string;
|
|
queryData?: string;
|
|
["foo bar"]: string;
|
|
};
|
|
a_b_c: string;
|
|
};
|
|
export interface IData {
|
|
["a_b_c"]: string;
|
|
nested: {
|
|
["d_e_f"]: string;
|
|
value: string;
|
|
["qwe rty"]: string;
|
|
};
|
|
}
|