Driver:{ [K in keyof Storage as string extends K ? never : K]: Storage[K] extends ((...args) => infer O) ? ((...args) => Promise<O>) : Promise<Storage[K]> }
The Driver helper type is a promisified variant of the built-in
Storage type. This type is utilized by the StateWorker
where it represents one of the available StorageDrivers.
The Driver helper type is a promisified variant of the built-in Storage type. This type is utilized by the StateWorker where it represents one of the available Storage Drivers.