export class Ok {
    constructor(value) {
        this.value = value;
    }
    isOk() {
        return true;
    }
    isErr() {
        return false;
    }
}
export class Err {
    constructor(error) {
        this.error = error;
        console.error(error);
    }
    isOk() {
        return false;
    }
    isErr() {
        return true;
    }
}
export const ok = (value) => new Ok(value);
export const err = (error) => new Err(error);
//# sourceMappingURL=result.js.map