@ayanaware/bento
Version:
Modular runtime framework designed to solve complex tasks
31 lines (30 loc) • 808 B
TypeScript
export declare class PropertyManager {
private readonly properties;
/**
* Checks if a given property exists in bento
* @param name property name
*
* @returns boolean
*/
hasProperty(name: string): boolean;
/**
* Fetch a value for given application property
* @param name name of variable to get
*
* @returns Property value
*/
getProperty<T>(name: string): T;
/**
* Update a given application property value
* @param name name of variable to update
* @param value new value
*/
setProperty<T>(name: string, value: T): T;
/**
* Define multiple application properties at once
* @param properties SetProperties object
*/
setProperties(properties: {
[key: string]: any;
}): void;
}