ts-data-forge
    Preparing search index...
    asNonZeroInt: <N extends number>(
        x: N,
    ) => number & { "!=0": true; Finite: true; Int: true; NaNValue: false } & Readonly<
        {
            "TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3": unknown;
        },
    > & N = castType

    Casts a number to the NonZeroInt branded type.

    Validates that the value is a non-zero integer and returns it with the NonZeroInt brand. Throws a TypeError otherwise.

    Type Declaration

      • <N extends number>(
            x: N,
        ): number & { "!=0": true; Finite: true; Int: true; NaNValue: false } & Readonly<
            {
                "TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3": unknown;
            },
        > & N
      • Type Parameters

        • N extends number

        Parameters

        • x: N

        Returns number & { "!=0": true; Finite: true; Int: true; NaNValue: false } & Readonly<
            {
                "TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3": unknown;
            },
        > & N

        The value as a NonZeroInt

    If the value is not a non-zero integer