Skip to content
Myr

chore: Add note explaining Draft type (#967)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Stephen Michel · committed by GitHub · parent ced4563 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/types/types-external.ts+1 added
30 unmodified lines
31type WeakReferences = IfAvailable<WeakMap<any, any>> | IfAvailable<WeakSet<any>>3233export type WritableDraft<T> = {-readonly [K in keyof T]: Draft<T[K]>}3435/** Convert a readonly type into a mutable type, if possible */36export type Draft<T> = T extends PrimitiveType37 ? T38 : T extends AtomicObject39 ? T
218 unmodified lines