/** * Matches a type that is either readonly or not. * * @template T Type to match. * @returns The type that is either readonly or not. * @example MaybeReadonly // number | readonly number */ type MaybeReadonly = Readonly | T; export type { MaybeReadonly };