Skip to content
Myr

chore(ts): Clean up `this` from typings

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

authored by Michel Weststrate · committed by Alec Larson · parent fe2473f · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/immer.d.ts+2 added-1 removed
47 unmodified lines
48 ? Base49 : Return extends Promise<infer Result>50 ? Promise<Result extends void ? Base : FromNothing<Result>>51 : FromNothing<Return>5253export interface IProduce {54 /**55 * The `produce` function takes a value and a "recipe function" (whose56 * return value often depends on the base state). The recipe function is
44 unmodified lines
101102 /** Normal producer */103 <Base, D = Draft<Base>, Return = void>(104 base: Base,104 recipe: (this: D, draft: D) => Return,105 recipe: (draft: D) => Return,106 listener?: PatchListener107 ): Produced<Base, Return>108}109
140 unmodified lines