Skip to main content

TypeScript Types

Crefy Connect is fully typed with TypeScript. Here are all the available types and interfaces.

Provider Types

CrefyConnectProviderProps

Hook Return Types

useCrefy Return Type

useSendEth Return Type

User Types

CrefyUser

WalletInfo

Transaction Types

SendEthParams

SendEthResponse

Component Props Types

AuthModalProps

Usage Examples

Type-Safe Component Props

Type-Safe Hook Usage

Type-Safe Transaction Sending

Custom Type Guards

Generic Utility Types

Type Safety: All Crefy Connect APIs are designed with TypeScript first, ensuring compile-time type checking and excellent IDE support with autocomplete.