JSPM

@lit-protocol/types

7.1.3-eip1559
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25394
  • Score
    100M100P100Q145134F
  • License MIT

Package Exports

  • @lit-protocol/types
  • @lit-protocol/types/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Types

This package provides comprehensive TypeScript type definitions for the entire Lit Protocol ecosystem. It exports interfaces and types that ensure type safety and provide excellent IDE support across all Lit Protocol packages.

Installation

yarn add @lit-protocol/types

Quick Start

import {
  AccessControlConditions,
  ChainProperties,
  AuthStatus,
  WalletProvider,
} from '@lit-protocol/types';

// Use types in your code
const conditions: AccessControlConditions = {
  // ... your conditions
};

Available Types

  • Access Control Conditions: Define access rules
  • Chain Properties: Blockchain-specific configurations
  • JSON Request/Response: Network communication types
  • Authentication: Auth status and provider types
  • Wallet Providers: Supported wallet options
  • Node Configuration: Lit node setup types
  • Protocol Interfaces: Core protocol definitions

Benefits

  • Full TypeScript support
  • Enhanced code completion
  • Compile-time type checking
  • Better development experience
  • Consistent type definitions across packages