Readonly dataReadonly isOptional stackStatic Optional prepareStatic stackuse name instead
Static captureStatic isWe cannot rely on instanceof because there can be some mismatch between
packages versions as dependencies of different packages.
So this function is a workaround to check if an error is of a specific type.
Rest ...args: never[]
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces