Type alias ReadOnlyDeep<Input>

ReadOnlyDeep<Input>: Input extends (infer Item)[] ? ReadOnlyDeepArray<Item> : Input extends Function ? Input : Input extends object ? ReadOnlyDeepRecord<Input> : Input

Read-only deep any Input.

Example

```typescript const record: ReadOnlyDeep<Record<string, Array>> = { "🟢": [1, 2, 3], "🟩": [4, 5, 6], }; record["🟢"][0] = 7; // Error

Type Parameters

  • Input