UNPKG

immutable-class

Version:

A template for creating immutable classes

31 lines 897 B
import type { Property } from './base-immutable'; import { BaseImmutable } from './base-immutable'; export interface RiderValue { name: string; } export interface RiderJS { name: string; } export declare class Rider extends BaseImmutable<RiderValue, RiderJS> { static PROPERTIES: Property[]; static fromJS(params: RiderValue): Rider; constructor(params: RiderValue); getName: () => string; changeName: (name: string) => Rider; } export interface BicycleValue { name: string; fuel: string; } export interface BicycleJS { name: string; fuel?: string; } export declare class Bicycle extends BaseImmutable<BicycleValue, BicycleJS> { static PROPERTIES: Property<BicycleValue>[]; static fromJS(params: BicycleJS): Bicycle; constructor(params: BicycleValue); readonly name: string; fuel: string; } //# sourceMappingURL=bicycle.mock.d.ts.map