mindee-api-nodejs icon indicating copy to clipboard operation
mindee-api-nodejs copied to clipboard

[Request] Expose StringField and other field types for import

Open roman-supy-io opened this issue 1 year ago • 2 comments
trafficstars

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

  1. import * as mindee from 'mindee';
  2. import { StringField } from 'mindee';
  3. 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

roman-supy-io avatar May 30 '24 10:05 roman-supy-io

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";

sebastianMindee avatar May 30 '24 12:05 sebastianMindee

ok, thank you, that works in the meanwhile

roman-supy-io avatar May 31 '24 08:05 roman-supy-io