Interface DebugHelperNodeParameters

Source
interface DebugHelperNodeParameters {
    category?:
        | "doNothing"
        | "throwError"
        | "oom"
        | "randomData";
    memorySizeValue?: number;
    nanoidAlphabet?: string;
    nanoidLength?: string;
    randomDataCount?: number;
    randomDataSeed?: string;
    randomDataSingleArray?: boolean;
    randomDataType?: | "url"
    | "user"
    | "address"
    | "email"
    | "ipv4"
    | "uuid"
    | "latLong"
    | "creditCard"
    | "ipv6"
    | "macAddress"
    | "nanoid"
    | "semver";
    throwErrorMessage?: string;
    throwErrorType?: | "NodeApiError"
    | "NodeOperationError"
    | "Error";
}

Properties§

§readonly category?: "doNothing" | "throwError" | "oom" | "randomData"

Default: "throwError"

§readonly memorySizeValue?: number

The approximate amount of memory to generate. Be generous... Default: 10

§readonly nanoidAlphabet?: string

The alphabet to use for generating the nanoIds Default: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

§readonly nanoidLength?: string

The length of each nanoIds Default: "16"

§readonly randomDataCount?: number

The number of random data items to generate into an array Default: 10

§readonly randomDataSeed?: string

If set, seed to use for generating the data (same seed will generate the same data)

§readonly randomDataSingleArray?: boolean

Whether to output a single array instead of multiple items

§readonly randomDataType?:
    | "url"
    | "user"
    | "address"
    | "email"
    | "ipv4"
    | "uuid"
    | "latLong"
    | "creditCard"
    | "ipv6"
    | "macAddress"
    | "nanoid"
    | "semver"

Default: "user"

§readonly throwErrorMessage?: string

The message to send as part of the error Default: "Node has thrown an error"

§readonly throwErrorType?: "NodeApiError" | "NodeOperationError" | "Error"

Default: "NodeApiError"