feat: add source_simple_connector type for standard connectors#366
Open
Lulzx wants to merge 1 commit intotscircuit:mainfrom
Open
feat: add source_simple_connector type for standard connectors#366Lulzx wants to merge 1 commit intotscircuit:mainfrom
Lulzx wants to merge 1 commit intotscircuit:mainfrom
Conversation
Adds a new source component type for connectors with standard support: - Create source_simple_connector schema with ftype "simple_connector" - Add connector_standard field (usb_c, m2) - Add pin_count and gender optional fields - Export from source index and add to any_source_component union Part of the connector standard implementation for issue tscircuit/tscircuit#748.
Lulzx
added a commit
to Lulzx/tscircuit
that referenced
this pull request
Dec 4, 2025
This feature is implemented across multiple repositories: - tscircuit/core#1715 - Add Connector component with USB-C standard support - tscircuit/parts-engine#17 - Add USB-C connector support and findStandardPart API - tscircuit/props#525 - Add StandardPartResult type and findStandardPart to PartsEngine - tscircuit/circuit-json#366 - Add source_simple_connector type No changes needed in this repository as it re-exports from @tscircuit/core. Once the dependent packages are published, the Connector component will be available automatically. Usage: ```tsx <connector standard="usb_c" name="USB1" /> <trace from=".USB1 > .DP" to=".MCU > .USB_DP" /> ``` Closes tscircuit#748
This was referenced Dec 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new source component type for connectors with standard support as part of issue tscircuit/tscircuit#748.
Changes
source_simple_connectorschema insrc/source/source_simple_connector.tsftype: "simple_connector"connector_standard?: "usb_c" | "m2"- The connector standardpin_count?: number- Number of contacts/pinsgender?: "male" | "female"- Connector gendersrc/source/index.tsSourceSimpleConnectortoany_source_componentunion typeSchema
Related PRs
StandardPartResulttypeTest plan