Documentation
    Preparing search index...
    • Transform the input value using the transformer. The transform method returns different values based upon the input.

      An array of values are converted to a collection and returned back as an array.

      All other values are treat as resource items and transformed using the transformer.

      Type Parameters

      • Data extends any
      • Transformer extends new (...args: any[]) => any
      • Variant extends string = "toObject"

      Parameters

      Returns Promise<InferData<InstanceType<Transformer>, Variant>>

    • Transform the input value using the transformer. The transform method returns different values based upon the input.

      An array of values are converted to a collection and returned back as an array.

      All other values are treat as resource items and transformed using the transformer.

      Type Parameters

      • Data extends any
      • Transformer extends new (...args: any[]) => any
      • Variant extends string = "toObject"

      Parameters

      Returns Promise<InferData<InstanceType<Transformer>, Variant>[]>