mindee-api-nodejs
mindee-api-nodejs copied to clipboard
[Request] Expose StringField and other field types for import
Prerequisites
Put an X between the brackets on this line if you have done all of the following:
- [x] Reproduced the problem or exposed a new need
- [x] Checked the github existing issues
Description
Steps to Reproduce
import * as mindee from 'mindee';import { StringField } from 'mindee';mindee......StringFieldorStringField` are not available
We want to check dynamically whether the propery is of type StringField, NumberField or LineItems, etc. but they are not exported from the package currently
Expected behavior:
StringField and other field types to be available for import
Actual behavior:
StringField and other field types are not available for import
Reproduces how often:
Versions
latest
Additional Information
Probably won't be implemented soon as it would be quite the breaking change, but this is something we feel is needed as well. Thank you for the feedback.
In the meantime, you can access fields through:
import { StringField } from "mindee/src/parsing/standard";
ok, thank you, that works in the meanwhile