Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Expose StringField and other field types for import #276

Open
2 tasks done
roman-supy-io opened this issue May 30, 2024 · 2 comments
Open
2 tasks done

[Request] Expose StringField and other field types for import #276

roman-supy-io opened this issue May 30, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@roman-supy-io
Copy link

Prerequisites

Put an X between the brackets on this line if you have done all of the following:

  • Reproduced the problem or exposed a new need
  • 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 roman-supy-io changed the title [Request] Expose StringField and other field types fort export [Request] Expose StringField and other field types for import May 30, 2024
@sebastianMindee sebastianMindee self-assigned this May 30, 2024
@sebastianMindee sebastianMindee added the enhancement New feature or request label May 30, 2024
@sebastianMindee
Copy link
Collaborator

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

@roman-supy-io
Copy link
Author

ok, thank you, that works in the meanwhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants