You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a validation function for raw DraftJS content state to be able to validate from our API that incoming objects have the right shape. (ref https://github.com/withspectrum/spectrum/issues/2792)
Just to note, I also tried to generate a JS file from the Draft types with the CLI like so: flow-runtime generate ./node_modules/draft-js/lib > src/draft-types.js Unfortunately, that outputs an empty file.
This is a:
Which concerns:
I'm trying to create a validation function for raw DraftJS content state to be able to validate from our API that incoming objects have the right shape. (ref https://github.com/withspectrum/spectrum/issues/2792)
This is what I imagined I'll be doing:
Unfortunately, this throws an "Unexpected token import" error:
I pushed the repo as-is up to GitHub here: https://github.com/withspectrum/draft-js-validate Any hints how I can make this work?
The text was updated successfully, but these errors were encountered: