import * as Pkg from '@roots/container' /** * container function interface */ export interface container { (repository?: T): Pkg.Container } /** * Create a new container instance * * @example * ```js * const myContainer = bud.container({key: methods.'value'}) * * myContainer.get('key') // returns 'value' * ``` */ export const container: container = function ( repository?: T, ): Pkg.Container { return repository ? new Pkg.Container(repository) : new Pkg.Container() }