You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
574 B
17 lines
574 B
import type { AbsentContainer } from "../../concrete/AbsentContainer";
|
|
import type { AbsentLeaf } from "../../concrete/AbsentLeaf";
|
|
import type { SolidLdoError } from "../../error/SolidLdoError";
|
|
import { Fetched } from "./Fetched";
|
|
import type { PresentClass } from "./Present";
|
|
|
|
export type AbsentClass = AbsentContainer | AbsentLeaf;
|
|
export abstract class Absent extends Fetched {
|
|
public get isAbsent(): true {
|
|
return true;
|
|
}
|
|
public get isPresent(): false {
|
|
return false;
|
|
}
|
|
|
|
abstract create(...args: unknown[]): Promise<PresentClass | SolidLdoError>;
|
|
}
|
|
|