Internal types
info
Foscia uses some utilities types which are not exported to avoid polluting your code or conflicting with your own utilities types. You may copy those types as you want and use them in your project.
Arrayable
type Arrayable<T> = T | T[];
ArrayableVariadic
export type ArrayableVariadic<T> = T[] | [T[]];
Awaitable
type Awaitable<T> = T | Promise<T>;
Constructor
type Constructor<T> = new (...args: any[]) => T;
Dictionary
type Dictionary<T = unknown> = { [K: string]: T };
Optional
export type Optional<T> = T | null | undefined;