Type alias ValidatorSuperstruct<TI>

ValidatorSuperstruct<TI>: {
    create: ((input) => TI);
}

Represents a Superstruct validator which contains a create method to construct a typed object.

Type Parameters

  • TI

    The type that the input will be validated against and created as.

Type declaration

  • create: ((input) => TI)
      • (input): TI
      • Parameters

        • input: unknown

        Returns TI