@clarigen/core 1.0.6 → 1.0.7
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 +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ type Compact$1<T> = {
|
|
|
173
173
|
type AbiTupleTo<T extends ReadonlyTuple> = Compact$1<UnionToIntersection$1<TupleTypeUnion<T['tuple'][number]>>>;
|
|
174
174
|
type AbiTypeTo<T extends ClarityAbiType$1 | ReadonlyTuple> = T extends ClarityAbiTypePrimitive ? AbiPrimitiveTo<T> : T extends ClarityAbiTypeBuffer ? Uint8Array : T extends ClarityAbiTypeStringAscii ? string : T extends ClarityAbiTypeStringUtf8 ? string : T extends ClarityAbiTypeList ? AbiTypeTo<T['list']['type']>[] : T extends ClarityAbiTypeOptional ? AbiTypeTo<T['optional']> | null : T extends ClarityAbiTypeResponse ? Response<AbiTypeTo<T['response']['ok']>, AbiTypeTo<T['response']['error']>> : T extends ReadonlyTuple ? AbiTupleTo<T> : T;
|
|
175
175
|
type FunctionReturnType<T> = T extends TypedAbiFunction<TypedAbiArg<unknown, string>[], infer R> ? R : never;
|
|
176
|
-
type Jsonize<T> = T extends BigInt ? string : T extends Uint8Array ? string : T extends Record<keyof T, unknown> ? {
|
|
176
|
+
type Jsonize<T> = T extends BigInt ? string : T extends Uint8Array ? string : T extends Array<infer V> ? Jsonize<V>[] : T extends Record<keyof T, unknown> ? {
|
|
177
177
|
[K in keyof T as K]: Jsonize<T[K]>;
|
|
178
178
|
} : T;
|
|
179
179
|
|
package/package.json
CHANGED