Skip to content

basalt / drives/src / DriveConnectionView

Type Alias: DriveConnectionView ​

> DriveConnectionView = Omit<DriveConnection, "secret" | "watch"> & object

Defined in: drives/src/store.ts:99

A connection as the outside world sees it: everything except the credentials.

The facade returns only this. Mirrors @basaltkit/webhooks' WebhookEndpointView — the surest way not to leak a secret through a list endpoint is for the secret never to be in the object the endpoint serialises.

Type Declaration ​

watching ​

> watching: boolean

Whether a push subscription is registered. The subscription secret is never exposed.

Released under the MIT License.