@llamaindex/ui
Version:
A comprehensive UI component library built with React, TypeScript, and Tailwind CSS for LlamaIndex applications
15 lines (13 loc) • 480 B
text/typescript
/**
* Shared JSON types used across the UI package
*/
type JSONValue = null | string | number | boolean | JsonObject | JSONValue[];
type PrimitiveValue = string | number | boolean | null | undefined;
type JsonValue = JSONValue | PrimitiveValue | JsonValue[] | object;
type JsonObject = {
[k: string]: JsonValue;
};
type JsonShape<T> = {
[K in keyof T]: JsonValue;
};
export type { JsonObject as J, PrimitiveValue as P, JsonValue as a, JsonShape as b, JSONValue as c };