nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The deprecated/alias ConnectionOptions type is no longer exported from typeorm

eduardoconti opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

'typeorm' >= 3.0 has no exported member named 'ConnectionOptions'
image

Minimum reproduction code

no

Steps to reproduce

try use typeorm >= 0.3.0 with nestJs

Expected behavior

The ConnectionOptions type is @deprecated as of [v0.3.0](typeorm/typeorm#8616 (2022-03-17).) The Connection type was also marked as @deprecated in this same version, but both types still have 'alias' types for backwards compatibility's sake. This is accomplished by declaring that ConnectionOptions extends DataSourceOptions and Connection extends DataSource, respectively:

Package version

8.0.3

NestJS version

8.4.1

Node.js version

15.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

image

We are working on 0.3.0 support. Please see this PR to keep up with progress