🔎 Search Terms
index signature any
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
const AnyClass = class {} as any;
export class Cls extends AnyClass { }
🙁 Actual behavior
The declaration for the class contains a static index signature:
declare const AnyClass: any;
export declare class Cls extends AnyClass {
static [x: string]: any;
}
🙂 Expected behavior
The declaration for the class does not contain the index sigature as in TS 5.6 and before:
declare const AnyClass: any;
export declare class Cls extends AnyClass {
}
Additional information about the issue
This means this declaration file can't be emitted in isolated declarations.
🔎 Search Terms
index signature any
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
The declaration for the class contains a static index signature:
🙂 Expected behavior
The declaration for the class does not contain the index sigature as in TS 5.6 and before:
Additional information about the issue
This means this declaration file can't be emitted in isolated declarations.