Microsoft/TypeScript
在 GitHub 查看[5.5 regression] "Maximum call stack size exceeded" when serializing nested self-referencing class expressions
Open
#59,600 创建于 2024年8月12日
BugDomain: Declaration EmitHelp Wanted
仓库指标
- Star
- (48,455 star)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 9 个 PR)
描述
🔎 Search Terms
dts declaration serializing class expression self-referencing nested
🕗 Version & Regression Information
- This changed between versions 5.4.x and 5.5.x
⏯ Playground Link
💻 Code
const A = class A<T> {
child!: InstanceType<typeof A.B<T>>;
static B = class B<T> {
parent!: T;
};
};
🙁 Actual behavior
it crashes
🙂 Expected behavior
it shouldn't crash 😉
Additional information about the issue
No response