@tscircuit/props 0.0.464 → 0.0.465
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/platformConfig.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -168112,6 +168112,7 @@ interface PlatformConfig {
|
|
|
168112
168112
|
footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
|
|
168113
168113
|
resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
|
|
168114
168114
|
nodeModulesResolver?: (modulePath: string) => Promise<string | null>;
|
|
168115
|
+
platformFetch?: typeof fetch;
|
|
168115
168116
|
}
|
|
168116
168117
|
declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
168117
168118
|
|
package/dist/index.js
CHANGED
|
@@ -2736,6 +2736,7 @@ var autorouterInstance = z120.object({
|
|
|
2736
2736
|
var autorouterDefinition = z120.object({
|
|
2737
2737
|
createAutorouter: z120.function().args(z120.any(), z120.any().optional()).returns(z120.union([autorouterInstance, z120.promise(autorouterInstance)])).describe("Create an autorouter instance")
|
|
2738
2738
|
});
|
|
2739
|
+
var platformFetch = z120.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
|
|
2739
2740
|
var platformConfig = z120.object({
|
|
2740
2741
|
partsEngine: partsEngine.optional(),
|
|
2741
2742
|
autorouter: autorouterProp.optional(),
|
|
@@ -2772,7 +2773,8 @@ var platformConfig = z120.object({
|
|
|
2772
2773
|
footprintFileParserMap: z120.record(z120.string(), footprintFileParserEntry).optional(),
|
|
2773
2774
|
resolveProjectStaticFileImportUrl: z120.function().args(z120.string()).returns(z120.promise(z120.string())).describe(
|
|
2774
2775
|
"A function that returns a string URL for static files for the project"
|
|
2775
|
-
).optional()
|
|
2776
|
+
).optional(),
|
|
2777
|
+
platformFetch: platformFetch.optional()
|
|
2776
2778
|
});
|
|
2777
2779
|
expectTypesMatch(true);
|
|
2778
2780
|
|