jccp_a/vuepress/node_modules/bail/index.d.ts
hellcat ac91e1fbe4 1
2025-11-12 17:57:30 +08:00

11 lines
234 B
TypeScript

/**
* Throw a given error.
*
* @param {Error|null|undefined} [error]
* Maybe error.
* @returns {asserts error is null|undefined}
*/
export function bail(
error?: Error | null | undefined
): asserts error is null | undefined