prettier/tests/typescript/custom/modifiers/minustoken.ts

8 lines
179 B
TypeScript

type MutableRequired<T> = {
-readonly [P in keyof T]-?:T[P]
}; // Remove readonly and ?
type ReadonlyPartial<T> = {
+readonly [P in keyof T]+?:T[P]
}; // Add readonly and ?