@tscircuit/props 0.0.694 → 0.0.695
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.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/lib/assembly/cable.ts +3 -0
- package/package.json +1 -1
package/lib/assembly/cable.ts
CHANGED
|
@@ -12,6 +12,8 @@ export interface AssemblyCableProps {
|
|
|
12
12
|
to: string
|
|
13
13
|
/** Optional USB-C-to-USB-C preset. Omit to infer the cable from its endpoints. */
|
|
14
14
|
standard?: AssemblyCableStandard
|
|
15
|
+
/** Explicit cable model specification. Omit to infer the cable from its endpoints. */
|
|
16
|
+
model?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export const assemblyCableProps = z.object({
|
|
@@ -19,6 +21,7 @@ export const assemblyCableProps = z.object({
|
|
|
19
21
|
from: z.string().trim().min(1),
|
|
20
22
|
to: z.string().trim().min(1),
|
|
21
23
|
standard: z.literal("usb_c").optional(),
|
|
24
|
+
model: z.string().trim().min(1).optional(),
|
|
22
25
|
})
|
|
23
26
|
|
|
24
27
|
export type AssemblyCablePropsInput = z.input<typeof assemblyCableProps>
|