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

UpdateBody type is not usably exported for some use cases #384

Open
dls314 opened this issue Mar 15, 2024 · 0 comments
Open

UpdateBody type is not usably exported for some use cases #384

dls314 opened this issue Mar 15, 2024 · 0 comments

Comments

@dls314
Copy link

dls314 commented Mar 15, 2024

Hi,

When trying to use the UpdateBody type (from https://github.com/typedorm/typedorm/blob/main/packages/core/src/classes/expression/update-body-type.ts#L98-L112) in a TS project with tsconfig settings that include

    "module": "node16",
    "moduleResolution": "node16",

I get seemingly unresolvable import errors because those module and moduleResolution types imply the resolvePackagejsonExports (https://www.typescriptlang.org/tsconfig#resolvePackageJsonExports) which seems not to allow a submodule import like the following

import { UpdateBody } from '@typedorm/core/esm/src/classes/expression/update-body-type';

The submodule import being necessary, because the UpdateBody type is not included in the public or private API exports from TypeDorm, even though it's referenced by the EntityManager public API.

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

No branches or pull requests

1 participant