Comparing version 0.10.0-canary.20230712T202658 to 0.10.0-canary.20230718T192117
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '0.10.0-canary.20230712T202658'; | ||
exports.version = '0.10.0-canary.20230718T192117'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export const version = '0.10.0-canary.20230712T202658'; | ||
export const version = '0.10.0-canary.20230718T192117'; | ||
//# sourceMappingURL=version.js.map |
import type { AbiEventParameter, AbiParameter } from '../abi.js'; | ||
import type { Join } from '../types.js'; | ||
import type { IsNarrowable, Join } from '../types.js'; | ||
/** | ||
@@ -20,8 +20,17 @@ * Formats {@link AbiParameter} to human-readable ABI parameter. | ||
type: `(${Join<{ | ||
[K in keyof Components]: FormatAbiParameter<Components[K]>; | ||
[K in keyof Components]: FormatAbiParameter<{ | ||
type: Components[K]['type']; | ||
} & (IsNarrowable<Components[K]['name'], string> extends true ? { | ||
name: Components[K]['name']; | ||
} : unknown) & (Components[K] extends { | ||
components: readonly AbiParameter[]; | ||
} ? { | ||
components: Components[K]['components']; | ||
} : unknown)>; | ||
}, ', '>})${Array}`; | ||
indexed?: Indexed; | ||
} & (string extends Name ? unknown : { | ||
} & (IsNarrowable<Name, string> extends true ? { | ||
name: Name; | ||
})> : `${TAbiParameter['type']}${TAbiParameter extends { | ||
} : unknown) & (IsNarrowable<Indexed, boolean> extends true ? { | ||
indexed: Indexed; | ||
} : unknown)> : `${TAbiParameter['type']}${TAbiParameter extends { | ||
indexed: true; | ||
@@ -28,0 +37,0 @@ } ? ' indexed' : ''}${TAbiParameter['name'] extends infer Name extends string ? ` ${Name}` : ''}`; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.10.0-canary.20230712T202658"; | ||
export declare const version = "0.10.0-canary.20230718T192117"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "abitype", | ||
"description": "Strict TypeScript types for Ethereum ABIs", | ||
"version": "0.10.0-canary.20230712T202658", | ||
"version": "0.10.0-canary.20230718T192117", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "wagmi-dev/abitype", |
import type { AbiEventParameter, AbiParameter } from '../abi.js' | ||
import { execTyped } from '../regex.js' | ||
import type { Join } from '../types.js' | ||
import type { IsNarrowable, Join } from '../types.js' | ||
@@ -27,8 +27,19 @@ /** | ||
{ | ||
[K in keyof Components]: FormatAbiParameter<Components[K]> | ||
[K in keyof Components]: FormatAbiParameter< | ||
{ | ||
type: Components[K]['type'] | ||
} & (IsNarrowable<Components[K]['name'], string> extends true | ||
? { name: Components[K]['name'] } | ||
: unknown) & | ||
(Components[K] extends { components: readonly AbiParameter[] } | ||
? { components: Components[K]['components'] } | ||
: unknown) | ||
> | ||
}, | ||
', ' | ||
>})${Array}` | ||
indexed?: Indexed | ||
} & (string extends Name ? unknown : { name: Name }) | ||
} & (IsNarrowable<Name, string> extends true ? { name: Name } : unknown) & | ||
(IsNarrowable<Indexed, boolean> extends true | ||
? { indexed: Indexed } | ||
: unknown) | ||
> | ||
@@ -35,0 +46,0 @@ : `${TAbiParameter['type']}${TAbiParameter extends { indexed: true } |
@@ -1,1 +0,1 @@ | ||
export const version = '0.10.0-canary.20230712T202658' | ||
export const version = '0.10.0-canary.20230718T192117' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1161426
24051