UNPKG

node-fractal

Version:

Output complex, flexible, AJAX/RESTful data structures.

21 lines (20 loc) 797 B
import { Manager, ResourceInterface } from '.'; export declare class Scope { protected manager: Manager; protected resource: ResourceInterface; protected scopeIdentifier: string; protected parentScopes: any[]; constructor(manager: Manager, resource: ResourceInterface, scopeIdentifier: string); getManager(): Manager; getResource(): ResourceInterface; getScopeIdentifier(): string; getParentScopes(): string[]; setParentScopes(parentScopes: string[]): this; getIdentifier(appendIdentifier?: string): string; embedChildScope(scopeIdentifier: string, resource: ResourceInterface): Scope; toObject(): any; private executeResourceTransformers; private fireTransformer; private serializeResourceData; private serializeResourceMeta; }