Effect CommunityEC
Effect Communityโ€ข3y agoโ€ข
17 replies
Sly

Understanding the Truthiness of HttpError

Somebody has any idea, why this is seen as always truthy?

(alias) const HttpError: Schema.Schema<{
    readonly _tag: "HttpError";
    readonly statusCode?: HttpStatusCode | undefined;
}, {
    readonly _tag: "HttpError";
    readonly statusCode?: HttpStatusCode | undefined;
}>
image.png
Was this page helpful?