permit2-types

Provide TypeScript typings for Permit2 SDK interfaces and constants.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill permit2-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: permit2-types
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/permit2-types
Command: npx skills add https://github.com/cyotee/crane --skill permit2-types

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Type-safe TypeScript typings for the Permit2 SDK remove ambiguity and improve developer velocity by enabling accurate autocompletion and compile-time checks.

Core Features & Use Cases

  • Type definitions for PermitTransferFrom, Witness, PermitTransferFromData, and PermitSingle
  • Constants and shared types used across Permit2 integrations
  • Use Case: rapid integration of Permit2 SDK in a TypeScript project with strong type guarantees

Quick Start

Import the types from @uniswap/permit2-sdk and reference them in your TypeScript code to enable strong typing.

Frequently Asked Questions about permit2-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add type-safe Permit2 typings to a TypeScript project?

Apply type-safe Permit2 typings by importing explicit definitions for interfaces like PermitTransferFrom and PermitSingle from @uniswap/permit2-sdk into your TypeScript project. This enables IDE autocompletion and compile-time checks to reduce type errors during integration.

What TypeScript interfaces are available for the Permit2 SDK?

The Permit2 SDK interfaces covered include PermitTransferFrom, Witness, PermitTransferFromData, and PermitSingle. Explicit type definitions and related constants are provided to ensure strong typing across your Permit2 integrations.

Do I need any dependencies to use Permit2 type definitions in TypeScript?

No additional dependencies are required beyond the @uniswap/permit2-sdk package itself. The typings integrate directly with existing TypeScript codebases and IDEs to provide autocompletion without external dependencies.

Why does my Permit2 SDK integration lack autocompletion in TypeScript?

Your Permit2 SDK integration lacks autocompletion because explicit type definitions for interfaces like PermitSingle and Witness are missing. Applying dedicated Permit2 typings resolves this ambiguity and delivers compile-time checks for faster development.

Can I use Permit2 typings with my existing TypeScript blockchain project?

Yes, Permit2 typings integrate directly with existing TypeScript codebases using @uniswap/permit2-sdk. The explicit type definitions work within your current IDE setup to provide accurate autocompletion without disrupting your project structure.