Skip to content

Commit

Permalink
renaming to match convention
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 17, 2024
1 parent f6c7a3e commit b80de73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/source/any_source_component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { source_simple_bug } from "./source_simple_bug"
import { source_simple_chip } from "./source_simple_chip"
import { source_led } from "./source_led"
import { source_simple_power_source } from "./source_simple_power_source"
import { source_battery } from "./source_battery"
import { source_simple_battery } from "./source_simple_battery"

export const any_source_component = z.union([
source_simple_resistor,
Expand All @@ -18,7 +18,7 @@ export const any_source_component = z.union([
source_simple_bug,
source_led,
source_simple_power_source,
source_battery,
source_simple_battery,
])

export type AnySourceComponent = z.infer<typeof any_source_component>
2 changes: 1 addition & 1 deletion src/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export * from "./source_trace"
export * from "./base/source_component_base"
export * from "./source_group"
export * from "./source_net"
export * from "./source_battery"
export * from "./source_simple_battery"
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { z } from "zod"
import { source_component_base } from "src/source/base/source_component_base"
import { battery_capacity } from "src/units"

export const simple_source_battery = source_component_base.extend({
export const source_simple_battery = source_component_base.extend({
ftype: z.literal("simple_battery"),
capacity: battery_capacity,
})

export type SourceBattery = z.infer<typeof simple_source_battery>
export type SourceBatteryInput = z.input<typeof simple_source_battery>
export type SourceSimpleBattery = z.infer<typeof source_simple_battery>
export type SourceSimpleBatteryInput = z.input<typeof source_simple_battery>

0 comments on commit b80de73

Please sign in to comment.