@ai-sdk/provider
Version:
18 lines (15 loc) • 384 B
text/typescript
/**
* A JSON value can be a string, number, boolean, object, array, or null.
* JSON values can be serialized and deserialized by the JSON.stringify and JSON.parse methods.
*/
export type JSONValue =
| null
| string
| number
| boolean
| JSONObject
| JSONArray;
export type JSONObject = {
[key: string]: JSONValue | undefined;
};
export type JSONArray = JSONValue[];