UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

7 lines (6 loc) 212 B
export declare type ResultObject<T> = { success: boolean; val: T | null | undefined; error: Error; }; export default function toResultObject<T>(): (promise: Promise<any>) => Promise<ResultObject<T>>;