API reference > @kontsedal/olas-core > Scope
Scope type
Typed cross-tree data slot. Provided by an ancestor via ctx.provide(scope, value) and consumed anywhere in its subtree via ctx.inject(scope). Defined at module scope so the identity is stable across calls. See spec §10.3.
Signature:
typescript
type Scope<T> = {
readonly [BRAND]: 'scope';
readonly name?: string;
readonly default?: T;
readonly hasDefault: boolean;
readonly [PHANTOM]?: T;
};