12 lines
345 B
TypeScript
12 lines
345 B
TypeScript
import { NullOr } from "../../../../utilities";
|
|
|
|
import { IValueObjectOptions, ValueObject } from "./ValueObject";
|
|
|
|
export interface INullableValueObjectOptions extends IValueObjectOptions {}
|
|
|
|
export abstract class NullableValueObject<T> extends ValueObject<NullOr<T>> {
|
|
public isNull = (): boolean => {
|
|
return this.props === null;
|
|
};
|
|
}
|