Skip to content

TypeScript API / @laikacms/server/oauth2 / assertRuntimeSafety

Function: assertRuntimeSafety() ​

ts
function assertRuntimeSafety(input, probe?): void;

Synchronous safety gate covering every when: 'construct' reason. Call it from the package constructor; it throws UnsafeRuntimeError with all firing, unsuppressed codes at once. This function IS the assertion — it deliberately does not import node:assert (see module comment).

Parameters ​

ParameterType
inputGateInput
probeRuntimeProbe

Returns ​

void

Released under the MIT License.