Skip to content

collana pay JS Docs v0.1.0


collana pay JS Docs / ExtractMethod

Type Alias: ExtractMethod<K>

ExtractMethod<K> = K extends `${string}:${infer M extends PaymentMethodType}` ? M : never

Defined in: types.ts:76

Extracts the PaymentMethodType dimension from a ProviderKey.

Type Parameters

K

K extends ProviderKey

A specific ProviderKey literal.

CollanaPay SDK Documentation