Skip to content

Commit

Permalink
fix: added flow typings for new API's introduced in v6. Fixes #570
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate authored May 5, 2020
2 parents 427040c + 1cd11d0 commit 0ddddfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ declare export function createDraft<T>(base: T): T
* Optionally a patch-listener can be provided to gather the patches that are needed to construct the object.
*/
declare export function finishDraft<T>(base: T, listener?: PatchListener): T

declare export function enableES5(): void
declare export function enableMapSet(): void
declare export function enablePatches(): void
declare export function enableAllPlugins(): void

0 comments on commit 0ddddfc

Please # to comment.