mini-effect
    Preparing search index...

    Function getExamples

    • Beta

      Returns the examples of a schema.

      If multiple examples are defined, it concatenates them using depth-first search. If no examples are defined, an empty array is returned.

      Type Parameters

      • const TSchema extends Schema$13

      Parameters

      • schema: TSchema

        The schema to get the examples from.

      Returns InferExamples<TSchema>

      The examples, if any.