Gacha game centered around vore.
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.
 
 
 
vore-gacha/src/NodeErrorHelpers.ts

7 lines
242 B

export function isNodeErr(e: unknown): e is NodeJS.ErrnoException {
return typeof e === "object" && e !== null && e.hasOwnProperty("code")
}
export function isENOENT(e: unknown): boolean {
return isNodeErr(e) && e.code === "ENOENT"
}