mini-effect
    Preparing search index...

    Function objectAsync

    • Creates an object schema.

      Hint: This schema removes unknown entries. The output will only include the entries you specify. To include unknown entries, use looseObjectAsync. To return an issue for unknown entries, use strictObjectAsync. To include and validate unknown entries, use objectWithRestAsync.

      Type Parameters

      Parameters

      • entries: TEntries$1

        The entries schema.

      Returns ObjectSchemaAsync<TEntries$1, undefined>

      An object schema.

    • Creates an object schema.

      Hint: This schema removes unknown entries. The output will only include the entries you specify. To include unknown entries, use looseObjectAsync. To return an issue for unknown entries, use strictObjectAsync. To include and validate unknown entries, use objectWithRestAsync.

      Type Parameters

      Parameters

      • entries: TEntries$1

        The entries schema.

      • message: TMessage

        The error message.

      Returns ObjectSchemaAsync<TEntries$1, TMessage>

      An object schema.