Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cc_types/types/utils.ts>Pair

Crypto currency utility types and constants
Latest
type alias Pair
import { type Pair } from "https://deno.land/x/cc_types@v1.0.0-beta.13/types/utils.ts";

Make currency pair with no duplicate

Type Parameters

Q extends string
B extends string
optional
Separator extends string = "_"
optional
_ = Q
definition: B extends _ ? Pair<Exclude<Q, B>, B, Separator> : Join<Q, B, Separator>