mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 05:06:11 +01:00
5 lines
134 B
TypeScript
5 lines
134 B
TypeScript
export function assertSecret<Type>(secret?: Type) {
|
|
if (secret === undefined) throw new Error("Missing secret");
|
|
return secret;
|
|
}
|