Created
October 30, 2019 19:19
-
-
Save cowboyd/570ab116e077c81c64f3ded389274c7f to your computer and use it in GitHub Desktop.
Dump an effection `Fork`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function dump(fork: any, indent = '') { | |
return `Fork { | |
state: ${fork.state} | |
operation: ${fork.operation.name} | |
children: | |
${[...fork.children].map(child => dump(child, ' ' + indent)).join("\n")} | |
}`.split("\n").map(line => `${indent}${line}`).join("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment