8 Replies
@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 errorthis?

yea i think that's it!
thanks
after removing "// @ts-ignore: no idea why this is triggering", from the smtpad.shape === "circle". can you check may be getting same



use
as PcbSmtpadCircle
also you put allowJs: false
in your tsconfig.json to avoid the memory issuesyeah using this
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)