Skip to content

OkP

OkP<T>

Represents an asynchronous success.

ts
type Example = OkP<boolean>;

// type Example = Promise<{
//     readonly ok: true
//     readonly value: boolean
//     readonly error?: undefined
// }>