Skip to content

Record ​

Un objeto de la API, con acceso por clave a lo que el SDK no modela.

Extended by ​

Constructors ​

Constructor ​

ts
new Record(data?): Record;

Parameters ​

ParameterType
data| { [key: string]: unknown; } | null | undefined

Returns ​

Record

Properties ​

raw ​

ts
readonly raw: Readonly<{
[key: string]: unknown;
}>;

El JSON completo tal como lo devolvió la API.

Methods ​

get() ​

ts
get<T>(key, fallback?): T | undefined;

El valor de un campo que el SDK no modela.

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
keystring
fallback?T

Returns ​

T | undefined


has() ​

ts
has(key): boolean;

Si el campo vino en la respuesta.

Parameters ​

ParameterType
keystring

Returns ​

boolean


toJSON() ​

ts
toJSON(): {
[key: string]: unknown;
};

Returns ​

ts
{
[key: string]: unknown;
}