Description

This module provides validations functions to check if input values are within the expected space.
Mostly to be used by plugin creators or developers.

 

API

throwErr()

public export function

export function throwErr(msg: string): void;

throwI8n()

public export function

export function throwI8n(msg: string, params?: I8nParams): void;

throwIf()

public export function

export function throwIf(isTrue: boolean, msg: string): void;

throwIfI8n()

public export function

export function throwIfI8n(isTrue: boolean, msg: string,
    params?: I8nParams): void;