@tscircuit/core 0.0.467 → 0.0.468
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 +2 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14557,7 +14557,8 @@ type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3" | "VIN" | "S
|
|
|
14557
14557
|
type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
|
|
14558
14558
|
type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string> & ChipFnSel>;
|
|
14559
14559
|
type ChipSel = Record<`U${Nums40}`, Record<CommonPinNames, string> & ChipFnSel>;
|
|
14560
|
-
type
|
|
14560
|
+
type NetSelFn<N extends string = CommonNetNames> = (<N2 extends string>() => Record<N | N2, string>) & Record<N, string>;
|
|
14561
|
+
type NetSel<N extends string = CommonNetNames> = Record<"net", NetSelFn<N>>;
|
|
14561
14562
|
type ExplicitModuleSel = Record<"subcircuit" | "module" | "group", Record<`S${Nums40}` | `M${Nums40}` | `G${Nums40}`, SelWithoutSubcircuit>>;
|
|
14562
14563
|
type GenericConnectionsAndSelectorsSel = Record<string, <CMP_FN extends (props: any) => any>(component: CMP_FN) => CMP_FN extends (props: infer P) => any ? P extends {
|
|
14563
14564
|
connections: infer CN;
|
package/dist/index.js
CHANGED
|
@@ -9796,7 +9796,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9796
9796
|
var package_default = {
|
|
9797
9797
|
name: "@tscircuit/core",
|
|
9798
9798
|
type: "module",
|
|
9799
|
-
version: "0.0.
|
|
9799
|
+
version: "0.0.467",
|
|
9800
9800
|
types: "dist/index.d.ts",
|
|
9801
9801
|
main: "dist/index.js",
|
|
9802
9802
|
module: "dist/index.js",
|
|
@@ -10228,6 +10228,14 @@ var sel = new Proxy(
|
|
|
10228
10228
|
// - sel.U1(({ selectors: { U1: { GND: "GND", VCC: "VCC" } } }) => ...)
|
|
10229
10229
|
// - sel.U1(({ connections: { GND: "GND", VCC: "VCC" } }) => ...)
|
|
10230
10230
|
apply: (target, _2, args) => {
|
|
10231
|
+
if (prop1 === "net") {
|
|
10232
|
+
return new Proxy(
|
|
10233
|
+
{},
|
|
10234
|
+
{
|
|
10235
|
+
get: (_3, netName) => `net.${netName}`
|
|
10236
|
+
}
|
|
10237
|
+
);
|
|
10238
|
+
}
|
|
10231
10239
|
return new Proxy(
|
|
10232
10240
|
{},
|
|
10233
10241
|
{
|