mscharley/dot

IsBound doesn't check parent containers

Closed this issue · 0 comments

Describe the bug.

If something is bound in a parent container then child.has() will not return true for that binding.

Steps to reproduce

@injectable()
class A {}

const container = createContainer();
container.bind(A).toSelf();

const child = container.createChild();
child.has(A) // returns false

Expected behaviour

No response

IOC-Deco

1.2.8

TypeScript

5.2

Decorator type

Typescript Experimental

Node

No response

Add any other context about the problem here.

No response