TS error on large nested objects
noobmaster19 opened this issue · 3 comments
noobmaster19 commented
Describe the bug
There's a TS error:
Type instantiation is excessively deep and possibly infinite.ts(2589)
⚠ Error(TS2589) |
Type instantiation is excessively deep and possibly infinite.
(property) form: SuperForm<{
name: string;
pageId: string;
componentProperties: {
type: "table";
props: {
title: string;
schema: DTableJSONSchemaArray;
description: string;
enableCheckBoxes: boolean;
... 9 more ...;
rowCount: number;
};
x: number;
y: number;
w: number;
h: number;
};
... 4 more ...;
parent?: string | ... 1 more ... | undefined;
}, any>
On large nested objects
Reproduction
You can reproduce by making a very large type
Logs
No response
System Info
System:
OS: macOS 14.4.1
CPU: (10) arm64 Apple M1 Pro
Memory: 123.45 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm
pnpm: 8.7.5 - ~/Library/pnpm/pnpm
bun: 1.0.14 - ~/.bun/bin/bun
Browsers:
Chrome: 124.0.6367.60
Safari: 17.4.1
npmPackages:
@sveltejs/kit: ^2.5.6 => 2.5.6
formsnap: ^1.0.0 => 1.0.0
svelte: ^4.2.14 => 4.2.14
sveltekit-superforms: ^2.12.4 => 2.12.4
zod: ^3.22.4 => 3.22.4
Severity
blocking an upgrade