Skip to content

StorageAdapterGet

1
type StorageAdapterGet<K, T>: K extends WebhookConnection ? Pick<WebhookSubscription<T>, "id" | "secret" | "type" | "options"> & object : Pick<WebSocketSubscription<T>, "id" | "type" | "options"> & object;

The type to be returned for the get method in the storage adapter.

Type parameters

Type parameterValue
K extends ConnectionTypes-
T extends SubscriptionTypesSubscriptionTypes

Source

twitchfy/packages/eventsub/src/types/StorageAdapterGet.ts:11