Skip to content

@sora-soft/framework


@sora-soft/framework / Scope

Abstract Class: Scope<T> ​

Defined in: packages/framework/src/lib/context/Scope.ts:5

Extended by ​

Type Parameters ​

Type Parameter
T

Constructors ​

Constructor ​

ts
new Scope<T>(id, store): Scope<T>;

Defined in: packages/framework/src/lib/context/Scope.ts:6

Parameters ​

ParameterType
idstring
storeT

Returns ​

Scope<T>

Properties ​

PropertyModifierTypeDefined in
id_protectedstringpackages/framework/src/lib/context/Scope.ts:37
stack_protectedstringpackages/framework/src/lib/context/Scope.ts:39
store_protectedTpackages/framework/src/lib/context/Scope.ts:38

Accessors ​

id ​

Get Signature ​

ts
get id(): string;

Defined in: packages/framework/src/lib/context/Scope.ts:33

Returns ​

string


stack ​

Get Signature ​

ts
get stack(): string;

Defined in: packages/framework/src/lib/context/Scope.ts:29

Returns ​

string


store ​

Get Signature ​

ts
get store(): T;

Defined in: packages/framework/src/lib/context/Scope.ts:25

Returns ​

T

Methods ​

setStore() ​

ts
setStore(data): void;

Defined in: packages/framework/src/lib/context/Scope.ts:21

Parameters ​

ParameterType
dataT

Returns ​

void

基于 WTFPL 许可发布