Class: Scope

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Scope(parent?)

Parameters

Name Type
parent? null | Scope

Properties

_lifecycle

Private Readonly _lifecycle: any


_namespace

Private Readonly _namespace: any


_parent

Private Readonly _parent: any


global

Static Readonly global: Scope

Accessors

disposed

get disposed(): boolean

Returns

boolean


lifecycle

get lifecycle(): Lifecycle

Returns

Lifecycle


namespace

get namespace(): Namespace

Returns

Namespace


parent

get parent(): null | Scope

Returns

null | Scope


current

Static get current(): Scope

Returns

Scope


requiredCurrent

Static get requiredCurrent(): Scope

Returns

Scope

Methods

[scopeDisposeSymbol]

[scopeDisposeSymbol](): void

Returns

void

Implementation of

ScopeDisposable.[scopeDisposeSymbol]


declareInside

declareInside<T>(fn): T

Type parameters

Name
T

Parameters

Name Type
fn () => T

Returns

T