circuit-json 0.0.162 → 0.0.164
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/README.md +18 -0
- package/dist/index.d.mts +416 -2
- package/dist/index.mjs +549 -532
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ and is the primary way that Circuit JSON is defined and maintained.
|
|
|
44
44
|
- [Source Components](#source-components)
|
|
45
45
|
- [SourceComponentBase](#sourcecomponentbase)
|
|
46
46
|
- [SourceLed](#sourceled)
|
|
47
|
+
- [SourceMissingPropertyError](#sourcemissingpropertyerror)
|
|
47
48
|
- [SourcePort](#sourceport)
|
|
48
49
|
- [SourceProjectMetadata](#sourceprojectmetadata)
|
|
49
50
|
- [SourceSimpleBattery](#sourcesimplebattery)
|
|
@@ -184,6 +185,7 @@ interface SourceComponentBase {
|
|
|
184
185
|
manufacturer_part_number?: string
|
|
185
186
|
supplier_part_numbers?: Partial<Record<SupplierName, string[]>>
|
|
186
187
|
display_value?: string
|
|
188
|
+
are_pins_interchangeable?: boolean
|
|
187
189
|
}
|
|
188
190
|
```
|
|
189
191
|
|
|
@@ -198,6 +200,22 @@ interface SourceLed extends SourceComponentBase {
|
|
|
198
200
|
}
|
|
199
201
|
```
|
|
200
202
|
|
|
203
|
+
### SourceMissingPropertyError
|
|
204
|
+
|
|
205
|
+
The source code is missing a property
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
/** The source code is missing a property */
|
|
209
|
+
interface SourceMissingPropertyError {
|
|
210
|
+
type: "source_missing_property_error"
|
|
211
|
+
source_missing_property_error_id: string
|
|
212
|
+
source_component_id: string
|
|
213
|
+
property_name: string
|
|
214
|
+
error_type: "source_missing_property_error"
|
|
215
|
+
message: string
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
201
219
|
### SourcePort
|
|
202
220
|
|
|
203
221
|
Defines a source port that can be connected to other components
|