Type alias NotEmpty<Type>

NotEmpty<Type>: Not<Empty<Type>, Type>

Not empty array, object or string.

Example

const notEmptyString: NotEmpty<string> = "🟢";
const notEmptyArray: NotEmpty<ReadOnlyArray> = ["🟢", "🟩"];
const notEmptyRecord: NotEmpty<ReadOnlyRecord> = { "🟢": "🟩" };

Type Parameters