// Adapted from https://github.com/typestack/routing-controllers/blob/4a56d176db77bc081dfcd3d8550e8433b5bc476e/src/util/isPromiseLike.ts#L1-L6 export function isPromiseLike (arg: any): arg is PromiseLike { return typeof arg?.then === 'function' }