@tscircuit/props 0.0.121 → 0.0.122

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,17 @@
1
+ import {
2
+ type CommonComponentProps,
3
+ commonComponentProps,
4
+ } from "../common/layout"
5
+ import { expectTypesMatch } from "../typecheck"
6
+ import { z } from "zod"
7
+
8
+ export interface MosfetProps extends CommonComponentProps {
9
+ channelType: "nmos" | "pmos"
10
+ }
11
+
12
+ export const mosfetProps = commonComponentProps.extend({
13
+ channelType: z.enum(["nmos", "pmos"]),
14
+ })
15
+
16
+ type InferredMosfetProps = z.input<typeof mosfetProps>
17
+ expectTypesMatch<MosfetProps, InferredMosfetProps>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",