Example of formatting an object for printing showing an annotated difference between type shape object and subject data object.
This example is built to address codemix/babel-plugin-typecheck#93 issue.
node ./dist
Example output:
{
foo: "string",
bar: "string", expected value type "string", actual type "number"
a: {
b: "string" expected value type "string", actual type "number"
}
}
git clone git@github.com:gajus/babel-plugin-typecheck-annotated-difference.git
cd ./babel-plugin-typecheck-annotated-difference
npm install
npm run build
node ./dist