• Validates the provided variables against the expected types.

    Parameters

    • variables: any

      The variables to validate. This is an object where each key is the name of a variable and the value is the value of the variable.

    • variableTypeMappings: {
          [key: string]: any;
      }

      An object that maps variable names to their expected types. The expected type can be a string representing a primitive type, an array of possible values, or an object mapping property names to their expected types.

      • [key: string]: any

    Returns void

    Throws

    Will throw an error if any of the variables do not match their expected types. The error message will include the names of the invalid variables and their expected types.