UNPKG

@minofrk/msf-io-ts

Version:

Type utilities with io-ts for MSF format.

5 lines (4 loc) 186 B
import { Branded } from 'io-ts'; export declare type DeepReadonly<T> = T extends Branded<unknown, any> ? T : T extends object ? { readonly [K in keyof T]: DeepReadonly<T[K]>; } : T;