@tscircuit/props 0.0.349 → 0.0.350

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,19 @@
1
+ import { ms } from "circuit-json"
1
2
  import { expectTypesMatch } from "lib/typecheck"
2
3
  import { z } from "zod"
3
4
 
4
5
  export interface AnalogSimulationProps {
5
6
  simulationType?: "spice_transient_analysis"
7
+ duration?: number | string
8
+ timePerStep?: number | string
6
9
  }
7
10
 
8
11
  export const analogSimulationProps = z.object({
9
12
  simulationType: z
10
13
  .literal("spice_transient_analysis")
11
14
  .default("spice_transient_analysis"),
15
+ duration: ms.optional(),
16
+ timePerStep: ms.optional(),
12
17
  })
13
18
 
14
19
  expectTypesMatch<AnalogSimulationProps, z.input<typeof analogSimulationProps>>(
@@ -7,7 +7,7 @@ import {
7
7
  import { expectTypesMatch } from "./typecheck"
8
8
  import { z } from "zod"
9
9
  import { type CadModelProp, cadModelProp } from "./common/cadModel"
10
- import { frequency, time } from "circuit-json"
10
+ import { frequency, ms } from "circuit-json"
11
11
 
12
12
  export interface FootprintLibraryResult {
13
13
  footprintCircuitJson: any[]
@@ -138,8 +138,8 @@ export const platformConfig = z.object({
138
138
  .record(z.string(), footprintFileParserEntry)
139
139
  .optional(),
140
140
  simSwitchFrequency: frequency.optional(),
141
- simCloseAt: time.optional(),
142
- simOpenAt: time.optional(),
141
+ simCloseAt: ms.optional(),
142
+ simOpenAt: ms.optional(),
143
143
  simStartClosed: z.boolean().optional(),
144
144
  simStartOpen: z.boolean().optional(),
145
145
  }) as z.ZodType<PlatformConfig>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.349",
3
+ "version": "0.0.350",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "@types/node": "^20.12.11",
32
32
  "@types/react": "^18.3.2",
33
33
  "ava": "^6.1.3",
34
- "circuit-json": "^0.0.186",
34
+ "circuit-json": "^0.0.270",
35
35
  "expect-type": "^1.2.2",
36
36
  "glob": "^11.0.0",
37
37
  "madge": "^8.0.0",