Skip to content

Commit 0376fa5

Browse files
committed
fix(proxy-state-tree): fix function to avoid breaking types being exported
1 parent 770c45c commit 0376fa5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/node_modules/proxy-state-tree/src/Proxyfier.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export class Proxifier {
9393
shouldTrackMutations(path) {
9494
return (
9595
this.tree.master.options.devmode ||
96-
(path && this.tree.master.pathDependencies[path])
96+
// We need the !! to avoid weird types for shouldTrackMutations that
97+
// actually break (because they contain references to 'src')
98+
!!(path && this.tree.master.pathDependencies[path])
9799
)
98100
}
99101

0 commit comments

Comments
 (0)