Skip to content

Commit 7a65b29

Browse files
committed
update exports
1 parent 0f6324f commit 7a65b29

13 files changed

+126
-123
lines changed

lib/spice-commands/BJTCommand.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import type { BJTCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface BJTCommandProps {
4+
name: string
5+
collector: string
6+
base: string
7+
emitter: string
8+
substrate?: string
9+
model: string
10+
area?: string
11+
}
12+
413
export class BJTCommand implements BaseSpiceCommand {
514
commandName = "bjt" as const
615
props: BJTCommandProps

lib/spice-commands/CurrentSourceCommand.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import type { CurrentSourceCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface CurrentSourceCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
value?: string
8+
acMagnitude?: string
9+
acPhase?: string
10+
}
11+
412
export class CurrentSourceCommand implements BaseSpiceCommand {
513
commandName = "current_source" as const
614
props: CurrentSourceCommandProps

lib/spice-commands/DiodeCommand.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import type { DiodeCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface DiodeCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
model: string
8+
area?: string
9+
}
10+
411
export class DiodeCommand implements BaseSpiceCommand {
512
commandName = "diode" as const
613
props: DiodeCommandProps

lib/spice-commands/InductorCommand.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import type { InductorCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface InductorCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
model?: string
8+
value: string
9+
initialCondition?: string
10+
}
11+
412
export class InductorCommand implements BaseSpiceCommand {
513
commandName = "inductor" as const
614
props: InductorCommandProps

lib/spice-commands/InductorCouplingCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import type { InductorCouplingCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface InductorCouplingCommandProps {
4+
name: string
5+
inductors: string[]
6+
coupling: string
7+
}
8+
49
export class InductorCouplingCommand implements BaseSpiceCommand {
510
commandName = "inductor_coupling" as const
611
props: InductorCouplingCommandProps

lib/spice-commands/JFETCommand.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import type { JFETCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface JFETCommandProps {
4+
name: string
5+
drain: string
6+
gate: string
7+
source: string
8+
model: string
9+
area?: string
10+
}
11+
412
export class JFETCommand implements BaseSpiceCommand {
513
commandName = "jfet" as const
614
props: JFETCommandProps

lib/spice-commands/MOSFETCommand.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
import type { MOSFETCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface MOSFETCommandProps {
4+
name: string
5+
drain: string
6+
gate: string
7+
source: string
8+
substrate: string
9+
model: string
10+
length?: string
11+
width?: string
12+
drainArea?: string
13+
sourceArea?: string
14+
drainPerimeter?: string
15+
sourcePerimeter?: string
16+
drainResistance?: string
17+
sourceResistance?: string
18+
}
19+
420
export class MOSFETCommand implements BaseSpiceCommand {
521
commandName = "mosfet" as const
622
props: MOSFETCommandProps

lib/spice-commands/ResistorCommand.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import type { ResistorCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface ResistorCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
model?: string
8+
value: string
9+
}
10+
411
export class ResistorCommand implements BaseSpiceCommand {
512
commandName = "resistor" as const
613
props: ResistorCommandProps

lib/spice-commands/SubcircuitCallCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import type { SubcircuitCallCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface SubcircuitCallCommandProps {
4+
name: string
5+
nodes: string[]
6+
subcircuitName: string
7+
}
8+
49
export class SubcircuitCallCommand implements BaseSpiceCommand {
510
commandName = "subcircuit_call" as const
611
props: SubcircuitCallCommandProps

lib/spice-commands/TransmissionLineCommand.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
import type { TransmissionLineCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface TransmissionLineCommandProps {
4+
name: string
5+
aPositive: string
6+
aNegative: string
7+
bPositive: string
8+
bNegative: string
9+
impedance: string
10+
delay?: string
11+
frequency?: string
12+
normalizedLength?: string
13+
}
14+
415
export class TransmissionLineCommand implements BaseSpiceCommand {
516
commandName = "transmission_line" as const
617
props: TransmissionLineCommandProps

lib/spice-commands/VoltageControlledSwitchCommand.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import type { VoltageControlledSwitchCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface VoltageControlledSwitchCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
positiveControl: string
8+
negativeControl: string
9+
model: string
10+
}
11+
412
export class VoltageControlledSwitchCommand implements BaseSpiceCommand {
513
commandName = "voltage_controlled_switch" as const
614
props: VoltageControlledSwitchCommandProps

lib/spice-commands/VoltageSourceCommand.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
import type { VoltageSourceCommandProps } from "."
21
import type { BaseSpiceCommand } from "./BaseSpiceCommand"
32

3+
export interface VoltageSourceCommandProps {
4+
name: string
5+
positiveNode: string
6+
negativeNode: string
7+
value?: string
8+
acMagnitude?: string
9+
acPhase?: string
10+
}
11+
412
export class VoltageSourceCommand implements BaseSpiceCommand {
513
commandName = "voltage_source" as const
614
props: VoltageSourceCommandProps

lib/spice-commands/index.ts

Lines changed: 14 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,14 @@
1-
export interface DiodeCommandProps {
2-
name: string
3-
positiveNode: string
4-
negativeNode: string
5-
model: string
6-
area?: string
7-
}
8-
9-
export interface CurrentSourceCommandProps {
10-
name: string
11-
positiveNode: string
12-
negativeNode: string
13-
value?: string
14-
acMagnitude?: string
15-
acPhase?: string
16-
}
17-
18-
export interface JFETCommandProps {
19-
name: string
20-
drain: string
21-
gate: string
22-
source: string
23-
model: string
24-
area?: string
25-
}
26-
27-
export interface InductorCouplingCommandProps {
28-
name: string
29-
inductors: string[]
30-
coupling: string
31-
}
32-
33-
export interface InductorCommandProps {
34-
name: string
35-
positiveNode: string
36-
negativeNode: string
37-
model?: string
38-
value: string
39-
initialCondition?: string
40-
}
41-
42-
export interface MOSFETCommandProps {
43-
name: string
44-
drain: string
45-
gate: string
46-
source: string
47-
substrate: string
48-
model: string
49-
length?: string
50-
width?: string
51-
drainArea?: string
52-
sourceArea?: string
53-
drainPerimeter?: string
54-
sourcePerimeter?: string
55-
drainResistance?: string
56-
sourceResistance?: string
57-
}
58-
59-
export interface BJTCommandProps {
60-
name: string
61-
collector: string
62-
base: string
63-
emitter: string
64-
substrate?: string
65-
model: string
66-
area?: string
67-
}
68-
69-
export interface ResistorCommandProps {
70-
name: string
71-
positiveNode: string
72-
negativeNode: string
73-
model?: string
74-
value: string
75-
}
76-
77-
export interface VoltageControlledSwitchCommandProps {
78-
name: string
79-
positiveNode: string
80-
negativeNode: string
81-
positiveControl: string
82-
negativeControl: string
83-
model: string
84-
}
85-
86-
export interface TransmissionLineCommandProps {
87-
name: string
88-
aPositive: string
89-
aNegative: string
90-
bPositive: string
91-
bNegative: string
92-
impedance: string
93-
delay?: string
94-
frequency?: string
95-
normalizedLength?: string
96-
}
97-
98-
export interface VoltageSourceCommandProps {
99-
name: string
100-
positiveNode: string
101-
negativeNode: string
102-
value?: string
103-
acMagnitude?: string
104-
acPhase?: string
105-
}
106-
107-
export interface SubcircuitCallCommandProps {
108-
name: string
109-
nodes: string[]
110-
subcircuitName: string
111-
}
1+
export * from "./BJTCommand"
2+
export * from "./BaseSpiceCommand"
3+
export * from "./CapacitorCommand"
4+
export * from "./CurrentSourceCommand"
5+
export * from "./DiodeCommand"
6+
export * from "./InductorCommand"
7+
export * from "./InductorCouplingCommand"
8+
export * from "./JFETCommand"
9+
export * from "./MOSFETCommand"
10+
export * from "./ResistorCommand"
11+
export * from "./SubcircuitCallCommand"
12+
export * from "./TransmissionLineCommand"
13+
export * from "./VoltageControlledSwitchCommand"
14+
export * from "./VoltageSourceCommand"

0 commit comments

Comments
 (0)