import { Provider } from "@smithy/types"; /** * @internal * * @returns a provider function for the input value if it isn't already one. */ export const normalizeProvider = (input: T | Provider): Provider => { if (typeof input === "function") return input as Provider; const promisified = Promise.resolve(input); return () => promisified; };