16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import { Model } from './model';
|
|
import { DeepPartial } from 'fishery';
|
|
|
|
/**
|
|
* The base class for all product types.
|
|
*/
|
|
export abstract class Product extends Model {
|
|
public readonly name: string = '';
|
|
public readonly regularPrice: string = '';
|
|
|
|
protected constructor( partial: DeepPartial< Product > = {} ) {
|
|
super( partial );
|
|
Object.assign( this, partial );
|
|
}
|
|
}
|