This commit is contained in:
MapleLeaf
2021-12-16 11:48:18 -06:00
parent 803252290d
commit e709e3acb5
33 changed files with 467 additions and 437 deletions

View File

@@ -0,0 +1,3 @@
export function toError(value: unknown) {
return value instanceof Error ? value : new Error(String(value))
}