@nivinjoseph/n-ject
Version:
IOC container
14 lines (13 loc) • 349 B
text/typescript
import { given } from "@nivinjoseph/n-defensive";
import { inject } from "./../../src/index.js";
import { B } from "./b.js";
import { C } from "./c.js";
("B", "C")
export class A
{
public constructor(b: B, c: C)
{
given(b, "b").ensureHasValue().ensureIsType(B);
given(c, "c").ensureHasValue().ensureIsType(C);
}
}