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§

Source§

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

Default: "throwError"

Source§

readonly memorySizeValue?: number

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

Source§

readonly nanoidAlphabet?: string

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

Source§

readonly nanoidLength?: string

The length of each nanoIds Default: "16"

Source§

readonly randomDataCount?: number

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

Source§

readonly randomDataSeed?: string

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

Source§

readonly randomDataSingleArray?: boolean

Whether to output a single array instead of multiple items

Source§

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

Default: "user"

Source§

readonly throwErrorMessage?: string

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

Source§

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

Default: "NodeApiError"