UNPKG

warscript

Version:

A typescript library for Warcraft III using Warpack.

24 lines (23 loc) 901 B
/** @noSelfInFile */ /** * Throws an {@link IllegalArgumentException} if the `value` is false. */ export declare const require: (value: boolean, message?: string) => asserts value is true; /** * Throws an {@link IllegalArgumentException} if the `value` is null. * Otherwise, returns the not null value. */ export declare const requireNotNull: <T>(value: T, message?: string) => NonNullable<T>; /** * Throws an {@link IllegalStateException} if the `value` is false. */ export declare const check: (value: boolean, message?: string) => asserts value is true; /** * Throws an {@link IllegalStateException} if the `value` is null. * Otherwise, returns the not null value. */ export declare const checkNotNull: <T>(value: T, message?: string) => NonNullable<T>; /** * Throws an {@link IllegalStateException} with the given `message`. */ export declare const error: (message: unknown) => never;