7 lines
198 B
TypeScript
7 lines
198 B
TypeScript
|
import type { Result } from './types.js';
|
||
|
declare const makeNakedPromise: {
|
||
|
<T>(): Result<T>;
|
||
|
wrap<T_1>(fn: (result: Result<T_1>) => void): Promise<T_1>;
|
||
|
};
|
||
|
export default makeNakedPromise;
|