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;
  };
}
