UNPKG

620 BTypeScriptView Raw
1import { IocContract, BindCallback } from '../Contracts';
2/**
3 * Manages the IoC container bindings
4 */
5export declare class Bindings {
6 private container;
7 /**
8 * Registered bindings
9 */
10 private list;
11 constructor(container: IocContract);
12 /**
13 * Find if namespace is a binding
14 */
15 has(namespace: string): boolean;
16 /**
17 * Define a binding
18 */
19 register(binding: string, callback: BindCallback<any, IocContract>, singleton: boolean): this;
20 /**
21 * Resolve a binding. An exception is raised, if the binding is missing
22 */
23 resolve(binding: string): any;
24}