Skip to content

Commit

Permalink
pushbutton param types from number to length (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiboSoftwareDev authored Jan 5, 2025
1 parent 2c6fd0f commit 015cf48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fn/pushbutton.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { AnyCircuitElement } from "circuit-json"
import { length, type AnyCircuitElement } from "circuit-json"
import { z } from "zod"
import { platedhole } from "../helpers/platedhole"
import { silkscreenpath } from "../helpers/silkscreenpath"
import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef"

export const pushbutton_def = z.object({
fn: z.literal("pushbutton"),
w: z.number().default(4.5),
h: z.number().default(6.5),
id: z.number().default(1),
od: z.number().default(1.2),
w: length.default(4.5),
h: length.default(6.5),
id: length.default(1),
od: length.default(1.2),
})

export const pushbutton = (
Expand Down

0 comments on commit 015cf48

Please sign in to comment.