@tscircuit/props 0.0.539 → 0.0.540

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,6 +1,6 @@
1
1
  import { distance, supplier_name } from "circuit-json"
2
2
  import type { Distance } from "lib/common/distance"
3
- import type { SpicemodelProps } from "lib/components/spicemodel"
3
+ import type { SpiceModelProps } from "lib/components/spicemodel"
4
4
  import {
5
5
  type CommonComponentProps,
6
6
  commonComponentProps,
@@ -38,7 +38,7 @@ export interface PinCompatibleVariant {
38
38
  supplierPartNumber?: SupplierPartNumbers
39
39
  }
40
40
 
41
- export type SpicemodelElement = ReactElement<SpicemodelProps>
41
+ export type SpiceModelElement = ReactElement<SpiceModelProps>
42
42
 
43
43
  export interface ChipPropsSU<
44
44
  PinLabel extends SchematicPinLabel = SchematicPinLabel,
@@ -71,7 +71,7 @@ export interface ChipPropsSU<
71
71
  */
72
72
  noConnect?: readonly PinLabel[] | PinLabel[]
73
73
  connections?: Connections<PinLabel>
74
- spiceModel?: SpicemodelElement
74
+ spiceModel?: SpiceModelElement
75
75
  }
76
76
 
77
77
  export type ChipProps<PinLabelMap extends PinLabelsProp | string = string> =
@@ -135,7 +135,7 @@ const connectionsProp = z
135
135
  .custom<Connections>()
136
136
  .pipe(z.record(z.string(), connectionTarget))
137
137
 
138
- const spicemodelElement = z.custom<SpicemodelElement>(
138
+ const spicemodelElement = z.custom<SpiceModelElement>(
139
139
  (v) => !!v && typeof v === "object" && "type" in v && "props" in v,
140
140
  )
141
141
 
@@ -1,7 +1,7 @@
1
1
  import { expectTypesMatch } from "lib/typecheck"
2
2
  import { z } from "zod"
3
3
 
4
- export interface SpicemodelProps {
4
+ export interface SpiceModelProps {
5
5
  source: string
6
6
  spicePinMapping?: Record<string, string>
7
7
  }
@@ -11,5 +11,5 @@ export const spicemodelProps = z.object({
11
11
  spicePinMapping: z.record(z.string(), z.string()).optional(),
12
12
  })
13
13
 
14
- type InferredSpicemodelProps = z.input<typeof spicemodelProps>
15
- expectTypesMatch<SpicemodelProps, InferredSpicemodelProps>(true)
14
+ type InferredSpiceModelProps = z.input<typeof spicemodelProps>
15
+ expectTypesMatch<SpiceModelProps, InferredSpiceModelProps>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.539",
3
+ "version": "0.0.540",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",