Skip to main content

Untyped maps (AnyMap / object)

An untyped map represents a JSON-like structure with a value that can either be a number, a string, a boolean, a bigint, a null, an array or an object.

interface Fetch extends HybridObject {
get(url: string): AnyMap
}
tip

While untyped maps are implemented efficiently, Nitro cannot sufficiently optimize the object as keys and value-types are not known in advance. If possible, avoid untyped maps and use strongly typed objects instead.