import { withDefaults } from "https://deno.land/x/windmill@v1.346.1/node_modules/tsafe/src/lab/withDefaults.ts";
Like Function.prototype.bind() but for a function that receives their parameters wrapped in an object. See documentation for more details: https://docs.tsafe.dev/withdefaults
Parameters
defaultParams: keyof Params extends never ? Record<string, never> : [Key in DefaultKey]: Params[Key]
Returns
(params: [Key in keyof Omit<Params, DefaultKey>]: Params[Key] & { defaultsOverwrite?: [Key in DefaultKey]?: [Params[Key]]; }) => R