Function createAssertGuardEquals

  • Creates a reusable assertGuardEquals function.

    Note that, you've to declare the variable type of the factory function caller like below. If you don't declare the variable type, compilation error be thrown. This is the special rule of the TypeScript compiler.

    // MUST DECLARE THE VARIABLE TYPE
    const func: typia.AssertionGuard<number> = typia.createAssertGuardEquals<number>();

    // IF NOT, COMPILATION ERROR BE OCCURED
    const func = typia.createAssertGuardEquals<number>();

    Assertions require every name in the call target to be declared with an explicit type annotation.

    Parameters

    Returns never

    Nothing until you configure the generic argument T

    You must configure the generic argument T

    compile error

    Jeongho Nam - https://github.com/samchon

  • Creates a reusable assertGuardEquals function.

    Note that, you've to declare the variable type of the factory function caller like below. If you don't declare the variable type, compilation error be thrown. This is the special rule of the TypeScript compiler.

    // MUST DECLARE THE VARIABLE TYPE
    const func: typia.AssertionGuard<number> = typia.createAssertGuardEquals<number>();

    // IF NOT, COMPILATION ERROR BE OCCURED
    const func = typia.createAssertGuardEquals<number>();

    Assertions require every name in the call target to be declared with an explicit type annotation.

    Type Parameters

    • T

    Parameters

    Returns ((input: unknown) => AssertionGuard<T>)

    Nothing until you configure the generic argument T

    compile error

    Jeongho Nam - https://github.com/samchon