idk 😵💫

idk 😵‍💫
8 Replies
Seve
Seve4mo ago
@Techmannih you need to be able to see the full typescript error. you can get that with bunx tsc --noEmit You can also install the extension bewauutify typescript error
shibo
shibo4mo ago
this?
No description
Seve
Seve4mo ago
yea i think that's it! thanks
Techmannih
TechmannihOP4mo ago
after removing "// @ts-ignore: no idea why this is triggering", from the smtpad.shape === "circle". can you check may be getting same
No description
No description
No description
Seve
Seve4mo ago
use as PcbSmtpadCircle also you put allowJs: false in your tsconfig.json to avoid the memory issues
Techmannih
TechmannihOP4mo ago
yeah using this
Seve
Seve4mo ago
no you're not putting as PcbSmtpadCircle in the right place, it needs to be inside and outside the assertion you need to cast your object inside the insert it's because the zod type isn't properly discriminating (we should have used discriminatedUnion in tscircuit/props, but wtvr)
Seve
Seve4mo ago
No description

Did you find this page helpful?