UNPKG

@pilotlab/lux-attributes

Version:

A luxurious user experience framework, developed by your friends at Pilot.

15 lines (14 loc) 744 B
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; } export default IAttributeFactory;