interface JSONEncodable

export interface JSONEncodable<T>

Represents an object capable of representing itself as a JSON object

Type Parameters

T

The JSON type corresponding to toJSON outputs.

toJSON : () => T

Transforms this object to its JSON format