@tscircuit/props 0.0.528 → 0.0.529
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/dist/index.d.ts +12 -2
- package/dist/index.js.map +1 -1
- package/lib/platformConfig.ts +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -186579,6 +186579,15 @@ interface AutorouterInstance {
|
|
|
186579
186579
|
interface AutorouterDefinition {
|
|
186580
186580
|
createAutorouter: (simpleRouteJson: SimpleRouteJson, opts?: Record<string, unknown>) => AutorouterInstance | Promise<AutorouterInstance>;
|
|
186581
186581
|
}
|
|
186582
|
+
/** e.g. "kicad", this is the prefix used to reference libraries in footprinter strings e.g. kicad:Resistor_0402 **/
|
|
186583
|
+
type FootprintLibraryPrefix = string;
|
|
186584
|
+
/** e.g. "kicad_mod", used to reference file extensions for loaders **/
|
|
186585
|
+
type FileExtension = string;
|
|
186586
|
+
type FileContent = string | ArrayBufferLike;
|
|
186587
|
+
type EsModuleImportResult = {
|
|
186588
|
+
__esModule: true;
|
|
186589
|
+
default: any;
|
|
186590
|
+
};
|
|
186582
186591
|
interface PlatformConfig {
|
|
186583
186592
|
partsEngine?: PartsEngine;
|
|
186584
186593
|
autorouter?: AutorouterProp;
|
|
@@ -186605,12 +186614,13 @@ interface PlatformConfig {
|
|
|
186605
186614
|
placementDrcChecksDisabled?: boolean;
|
|
186606
186615
|
pinSpecificationDrcChecksDisabled?: boolean;
|
|
186607
186616
|
spiceEngineMap?: Record<string, SpiceEngine>;
|
|
186608
|
-
footprintLibraryMap?: Record<
|
|
186617
|
+
footprintLibraryMap?: Record<FootprintLibraryPrefix, ((path: string, options?: {
|
|
186609
186618
|
resolvedPcbStyle?: PcbStyle;
|
|
186610
186619
|
}) => Promise<FootprintLibraryResult>) | Record<string, any[] | ((path: string, options?: {
|
|
186611
186620
|
resolvedPcbStyle?: PcbStyle;
|
|
186612
186621
|
}) => Promise<FootprintLibraryResult>)>>;
|
|
186613
|
-
footprintFileParserMap?: Record<
|
|
186622
|
+
footprintFileParserMap?: Record<FileExtension, FootprintFileParserEntry>;
|
|
186623
|
+
staticFileLoaderMap?: Record<FileExtension, (fileContent: FileContent) => Promise<EsModuleImportResult>>;
|
|
186614
186624
|
resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
|
|
186615
186625
|
nodeModulesResolver?: (modulePath: string) => Promise<string | null>;
|
|
186616
186626
|
platformFetch?: typeof fetch;
|