import { singleton } from "https://deno.land/x/lambda_ioc@1.0.0/lambda-ioc/deno/index.ts";
Given a dependency factory, returns a new factory that will always resolve the same instance of the dependency.
Parameters
factory: SyncDependencyFactory<TVal, ReadableSyncContainer<TSyncDependencies>>
Returns
SyncDependencyFactory<TVal, ReadableSyncContainer<TSyncDependencies>>