furystack-core
Version:
FuryStack framework, Core package
31 lines (30 loc) • 1.03 kB
TypeScript
import { DescriptorEntryType } from "./DescriptorEntryType";
import { ModelDescriptor } from "./ModelDescriptor";
export declare class ModelDescriptorStore {
/**
* The list of DecoratorDescriptors for an Object
*/
private static descriptorsInternal;
/**
* Gets the DecoratorDescriptor for the specified object
* @param obj The object to get the DecoratorDescriptor for.
*/
static GetDescriptor<T>(obj: {
new (): T;
}): ModelDescriptor;
/**
* Gets the Entity Name for the specified model class
* @param obj The model to get the EntityName for
*/
static GetName<T>(obj: {
new (): T;
}): string;
/**
* Adds a value to the Decorator Descriptor store.
* Adds an entry for the Object if it not exist, appends the Entries otherwise.
* @param newValue The new Object and Key values
*/
static Add<T>(entityTypeClass: {
new (): T;
}, descriptorEntry: DescriptorEntryType): void;
}