@promptbook/gemini
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
11 lines (10 loc) • 298 B
TypeScript
/**
* Item or array of items
*
* 1) Any item except array and undefined represents array with that one item (also null)
* 2) Undefined represents empty array
* 3) Array represents itself
*
* @private internal type
*/
export type Arrayable<TItem> = TItem | ReadonlyArray<TItem> | undefined;