@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
9 lines (8 loc) • 318 B
TypeScript
/**
* Represents an array that is guaranteed to have at least one element
*/
export type NonEmptyArray<TItem> = [TItem, ...TItem[]];
/**
* Represents an array that is guaranteed to have at least one element and is readonly
*/
export type NonEmptyReadonlyArray<TItem> = ReadonlyArray<TItem> & NonEmptyArray<TItem>;