Comparing version 0.0.14 to 0.0.15
export type { Abi, AbiError, AbiEvent, AbiFunction, AbiInternalType, AbiParameter, AbiStateMutability, AbiType, Address, SolidityAddress, SolidityArray, SolidityArrayWithoutTuple, SolidityArrayWithTuple, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType, } from './abi'; | ||
export type { Config, DefaultConfig, ResolvedConfig } from './config'; | ||
export type { AbiEventSignature, AbiFunctionSignature, AbiParameterToPrimitiveType, AbiParametersToPrimitiveTypes, AbiTypeToPrimitiveType, ExtractAbiError, ExtractAbiErrorNames, ExtractAbiErrors, ExtractAbiEvent, ExtractAbiEventNames, ExtractAbiEvents, ExtractAbiFunction, ExtractAbiFunctionNames, ExtractAbiFunctions, IsAbi, IsTypedData, TypedDataToPrimitiveTypes, } from './utils'; | ||
export type { AbiParameterToPrimitiveType, AbiParametersToPrimitiveTypes, AbiTypeToPrimitiveType, ExtractAbiError, ExtractAbiErrorNames, ExtractAbiErrors, ExtractAbiEvent, ExtractAbiEventNames, ExtractAbiEvents, ExtractAbiFunction, ExtractAbiFunctionNames, ExtractAbiFunctions, IsAbi, IsTypedData, TypedDataToPrimitiveTypes, } from './utils'; |
@@ -1,2 +0,2 @@ | ||
import { Abi, AbiEvent, AbiFunction, AbiParameter, AbiStateMutability, AbiType, SolidityAddress, SolidityArray, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType } from './abi'; | ||
import { Abi, AbiParameter, AbiStateMutability, AbiType, SolidityAddress, SolidityArray, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType } from './abi'; | ||
import { ResolvedConfig } from './config'; | ||
@@ -109,11 +109,2 @@ import { Merge, Tuple } from './types'; | ||
/** | ||
* Converts {@link AbiFunction} into TypeScript function signature. | ||
* | ||
* @param TAbiFunction - {@link AbiFunction} to convert | ||
* @returns Function signature | ||
*/ | ||
export declare type AbiFunctionSignature<TAbiFunction extends AbiFunction & { | ||
type: 'function'; | ||
}> = (...args: AbiParametersToPrimitiveTypes<TAbiFunction['inputs']> extends infer Inputs ? Inputs extends readonly any[] ? Inputs : never : never) => AbiParametersToPrimitiveTypes<TAbiFunction['outputs']> extends infer Outputs extends readonly any[] ? Outputs['length'] extends 0 ? void : Outputs['length'] extends 1 ? Outputs[0] : Outputs extends readonly [...infer _] ? Outputs : any : never; | ||
/** | ||
* Extracts all {@link AbiEvent} types from {@link Abi}. | ||
@@ -145,9 +136,2 @@ * | ||
/** | ||
* Converts {@link AbiEvent} into TypeScript function signature. | ||
* | ||
* @param AbiEvent - {@link AbiEvent} to convert | ||
* @returns Function signature | ||
*/ | ||
export declare type AbiEventSignature<TAbiEvent extends AbiEvent> = (...args: AbiParametersToPrimitiveTypes<TAbiEvent['inputs']> extends infer Inputs ? Inputs extends readonly any[] ? Inputs : never : never) => void; | ||
/** | ||
* Extracts all {@link AbiError} types from {@link Abi}. | ||
@@ -154,0 +138,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
"license": "WAGMIT", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -211,24 +211,2 @@ # ABIType | ||
### AbiEventSignature | ||
Converts `AbiEvent` into TypeScript function signature. | ||
```ts | ||
import { AbiEventSignature } from 'abitype' | ||
type Result = AbiEventSignature<ExtractAbiEvent<typeof erc721Abi, 'Transfer'>> | ||
``` | ||
### AbiFunctionSignature | ||
Converts `AbiEvent` into TypeScript function signature. | ||
```ts | ||
import { AbiFunctionSignature } from 'abitype' | ||
type Result = AbiFunctionSignature< | ||
ExtractAbiFunction<typeof erc721Abi, 'balanceOf'> | ||
> | ||
``` | ||
### TypedDataToPrimitiveTypes | ||
@@ -235,0 +213,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31863
403
391