Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ftype: mechanical_spst_switch #25

Closed
wants to merge 2 commits into from
Closed

Conversation

abhijitxy
Copy link
Contributor

@abhijitxy abhijitxy requested a review from seveibar August 19, 2024 18:03
import { z } from "zod"

export const source_simple_switch = source_component_base.extend({
ftype: z.literal("mechanical_spst_switch"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this an enum because we'll add more in the future

import { source_component_base } from "src/source/base/source_component_base"
import { z } from "zod"

export const source_simple_switch = source_component_base.extend({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to just source_switch

@abhijitxy abhijitxy requested a review from seveibar August 19, 2024 18:57
@seveibar seveibar closed this Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants