# FetchesType | ONNX Runtime JavaScript API
Documentation for ONNX Runtime JavaScript API

# Type alias FetchesType

FetchesType: readonly string[] | NullableOnnxValueMapType

A fetches (model outputs) could be one of the following:

- Omitted. Use model's output names definition.
- An array of string indicating the output names.
- An object that use output names as keys and OnnxValue or null as corresponding values.

### Remark

different from input argument, in output, OnnxValue is optional. If an OnnxValue is present it will be used as a pre-allocated value by the inference engine; if omitted, inference engine will allocate buffer internally.

- Defined in inference-session.ts:32

Generated using TypeDoc