Stone.js API
    Preparing search index...

    Function custom

    • Get the specified env variable value with custom validator.

      Type Parameters

      • T = any

      Parameters

      • key: string

        The environment variable key.

      • validator: (key: string, value: string, options: Options) => T

        The custom validation function.

      • Optionaloptions: Options | T

        Options for retrieving the value.

      Returns T

      The validated value of the environment variable.