@pilotlab/lux-attributes
Version:
A luxurious user experience framework, developed by your friends at Pilot.
27 lines (18 loc) • 780 B
text/typescript
import { INodeFactory } from '@pilotlab/lux-nodes';
import IAttributesFactory from './iAttributesFactory';
import IAttributeCreateOptions from './iAttributeCreateOptions';
import IAttribute from './iAttribute';
export interface IAttributeFactory extends INodeFactory {
collection:IAttributesFactory;
instance(createOptions:IAttributeCreateOptions, key:string):IAttribute;
fromAny(data:(IAttribute | Object | string)):IAttribute;
fromString(data:string, parseString?:(data:string) => IAttribute):IAttribute;
fromJson(jsonString:string):IAttribute;
fromObject(obj:Object, ...args:any[]):IAttribute;
fromStrings(
key:string,
value:any,
dataType:string
):IAttribute;
} // End interface
export default IAttributeFactory;