@chainfuse/types 1.1.7 → 1.2.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -23,6 +23,10 @@ export type UnionKeys<T> = T extends any ? keyof T : never;
23
23
  export type BlockKeys<T, K extends readonly string[]> = {
24
24
  [P in keyof T as P extends K[number] ? never : P]: T[P];
25
25
  };
26
+ /**
27
+ * For when you have a type to conform `URLSearchParams` to, but all values are strings (as per search params spec)
28
+ */
29
+ export type InterfaceToSearchParams<T> = Record<keyof T, string>;
26
30
  export type PromiseFactory<T> = () => Promise<T>;
27
31
  export interface ExternallyResolvablePromise<T> {
28
32
  promise: Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -84,5 +84,5 @@
84
84
  "@cloudflare/workers-types": "^4.20241112.0",
85
85
  "@types/json-schema": "^7.0.15"
86
86
  },
87
- "gitHead": "8818545b1a8c724cf0a9d1698d00edc45eb489b3"
87
+ "gitHead": "a6fa482c651123f933f0aeef935f25b5196ee194"
88
88
  }