Files
routie/frontend/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/maybe.d.ts
T

4 lines
186 B
TypeScript

type MaybeParams<T> = (err: Error | any | null, result?: T) => void;
export default function maybe<T>(cb: MaybeParams<T> | undefined, promise: Promise<T>): Promise<T> | void;
export {};