odavid/typeorm-transactional-cls-hooked

library architecture

NarHakobyan opened this issue · 6 comments

please remove types from dist folder, if we are not importing from dist types are not working

image

image

You should not import from dist...
You should import from typeorm-transactional-cls-hooked

import { initializeTransactionalContext, patchTypeORMRepositoryWithBaseRepository } from 'typeorm-transactional-cls-hooked';

In that case typings autocomplete is not working

It should work, will investigate.

@NarHakobyan - I just created a simple typescript project

  • installed typeorm, typeorm-transactional-cls-hooked, reflect-metadata

intellisense works
image

Am I missing something?

image
image

also, webstorm autoimport imports from dist

Hi @NarHakobyan - Added types to package.json, I believe it will solve the issue.

Will release soon.

Closing it, please reopen if the new release won't work.

Cheers,
Ohad