@tscircuit/props 0.0.482 → 0.0.483
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 +332 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +6 -0
- package/package.json +1 -1
package/lib/common/layout.ts
CHANGED
|
@@ -279,6 +279,8 @@ export interface PinAttributeMap {
|
|
|
279
279
|
isUsingOpenDrain?: boolean
|
|
280
280
|
canUsePushPull?: boolean
|
|
281
281
|
isUsingPushPull?: boolean
|
|
282
|
+
shouldHaveDecouplingCapacitor?: boolean
|
|
283
|
+
recommendedDecouplingCapacitorCapacitance?: string | number
|
|
282
284
|
}
|
|
283
285
|
|
|
284
286
|
export const pinAttributeMap = z.object({
|
|
@@ -342,6 +344,10 @@ export const pinAttributeMap = z.object({
|
|
|
342
344
|
isUsingOpenDrain: z.boolean().optional(),
|
|
343
345
|
canUsePushPull: z.boolean().optional(),
|
|
344
346
|
isUsingPushPull: z.boolean().optional(),
|
|
347
|
+
shouldHaveDecouplingCapacitor: z.boolean().optional(),
|
|
348
|
+
recommendedDecouplingCapacitorCapacitance: z
|
|
349
|
+
.union([z.string(), z.number()])
|
|
350
|
+
.optional(),
|
|
345
351
|
})
|
|
346
352
|
|
|
347
353
|
expectTypesMatch<PinAttributeMap, z.input<typeof pinAttributeMap>>(true)
|