UNPKG

immutable-class

Version:

A template for creating immutable classes

17 lines 629 B
export * from './base-immutable/base-immutable'; export * from './equality/equality'; export * from './keyed-array/keyed-array'; export * from './named-array/named-array'; export * from './simple-array/simple-array'; export * from './utils/utils'; export interface Instance<ValueType, JSType> { valueOf(): ValueType; toJS(): JSType; toJSON(): JSType; equals(other: Instance<ValueType, JSType> | undefined): boolean; } export interface Class<ValueType, JSType> { fromJS(properties: JSType, context?: any): Instance<ValueType, JSType>; new (properties: ValueType): any; } //# sourceMappingURL=index.d.ts.map