@tscircuit/props 0.0.99 → 0.0.100

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.
@@ -0,0 +1,22 @@
1
+ import { frequency, capacitance } from "circuit-json"
2
+ import {
3
+ type CommonComponentProps,
4
+ commonComponentProps,
5
+ lrPins,
6
+ } from "lib/common/layout"
7
+ import { expectTypesMatch } from "lib/typecheck"
8
+ import type { z } from "zod"
9
+
10
+ export interface CrystalProps extends CommonComponentProps {
11
+ frequency: number | string
12
+ loadCapacitance: number | string
13
+ }
14
+
15
+ export const crystalProps = commonComponentProps.extend({
16
+ frequency: frequency,
17
+ loadCapacitance: capacitance,
18
+ })
19
+ export const crystalPins = lrPins
20
+
21
+ type InferredCrystalProps = z.input<typeof crystalProps>
22
+ expectTypesMatch<CrystalProps, InferredCrystalProps>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "@types/node": "^20.12.11",
24
24
  "@types/react": "^18.3.2",
25
25
  "ava": "^6.1.3",
26
- "circuit-json": "^0.0.93",
26
+ "circuit-json": "^0.0.105",
27
27
  "expect-type": "^0.20.0",
28
28
  "madge": "^8.0.0",
29
29
  "react": "^18.3.1",