@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 CHANGED
@@ -1898,6 +1898,7 @@ export interface PlatformConfig {
1898
1898
 
1899
1899
  resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
1900
1900
  nodeModulesResolver?: (modulePath: string) => Promise<string | null>;
1901
+ platformFetch?: typeof fetch;
1901
1902
  }
1902
1903
  ```
1903
1904
 
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