mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed small bug with connection
This commit is contained in:
parent
42c114b98c
commit
f686515646
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "typeorm",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2-alpha",
|
||||
"description": "Data-mapper ORM for Typescript",
|
||||
"license": "Apache-2.0",
|
||||
"readmeFilename": "README.md",
|
||||
|
||||
@ -60,8 +60,8 @@ export class ConnectionManager {
|
||||
createConnection(name: string, driver: Driver, options: ConnectionOptions): Connection;
|
||||
createConnection(nameOrDriver: string|Driver, driver?: Driver|ConnectionOptions, options?: ConnectionOptions): Connection {
|
||||
if (typeof nameOrDriver === "object") {
|
||||
driver = <Driver> nameOrDriver;
|
||||
options = <ConnectionOptions> driver;
|
||||
driver = <Driver> nameOrDriver;
|
||||
}
|
||||
const name = typeof nameOrDriver === "string" ? <string> nameOrDriver : "default";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user