Skip to content

Commit

Permalink
debuged the footprints legoutside and fice (tscircuit#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abse2001 authored Jan 7, 2025
1 parent 26e3f88 commit de88ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fn/ms012.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "circuit-json"
import type { AnyCircuitElement } from "circuit-json"
import { extendSoicDef, soicWithoutParsing } from "./soic"
import type { z } from "zod"

Expand All @@ -10,7 +10,7 @@ export const ms012_def = extendSoicDef({

export const ms012 = (
raw_params: z.input<typeof ms012_def>,
): { circuitJson: AnySoupElement[]; parameters: any } => {
): { circuitJson: AnyCircuitElement[]; parameters: any } => {
const parameters = ms012_def.parse({ ...raw_params, num_pins: 8 })
return {
circuitJson: soicWithoutParsing(parameters),
Expand Down
2 changes: 1 addition & 1 deletion src/fn/quad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const base_quad_def = z.object({
pw: length.optional(),
pl: length.optional(),
thermalpad: z.union([z.literal(true), dim2d]).optional(),
legsoutside: z.boolean().optional(),
legsoutside: z.boolean().default(false),
})

export const quadTransform = <T extends z.infer<typeof base_quad_def>>(
Expand Down

0 comments on commit de88ef3

Please sign in to comment.