function assertErrorimport { assertError } from "https://dotland.deno.dev/x/somefn@v0.1.1-jsr/ts/error.ts"; assertError(v: unknown): asserts v is Error断言传入值是一个 Error 常用在错误处理 catch 中. Parametersv: unknownReturnsasserts v is Error