Files
NapCatQQ/.pnpm-store/v3/files/42/bf998c2db5efce8d65467f625f98e5284770c922b5ef8dfb87860730c3a0b7a33f000f481807935b2edb7e4992a7b98ae92968039316ae043ffc4070553cbe
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

10 lines
176 B
Plaintext

export function assert(
condition: any,
msg = 'Assertion failed!'
): asserts condition {
if (!condition) {
console.error(msg)
throw new Error(msg)
}
}