UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

7 lines (4 loc) 228 B
import { IsWritable } from './IsWritable.d.mjs'; import { MutableList } from './MutableList.d.mjs'; type RejectReadonly<T extends MutableList<unknown>> = IsWritable<T> extends true ? T : never; export type { RejectReadonly };