Skip to content

Commit

Permalink
fix: change setConnectionOptions argument to partial
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Apr 18, 2020
1 parent cce10e6 commit e8a1c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typeorm-seeding",
"version": "1.4.4",
"version": "1.6.0",
"description": "馃尡 A delightful way to seed test data into your database.",
"license": "MIT",
"author": "Gery Hirschfeld <gery.hirschfeld@w3tec.ch> (https://github.com/hirsch88)",
Expand Down
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const configureConnection = (option: ConfigureOption = {}) => {
}
}

export const setConnectionOptions = (options: TypeORMConnectionOptions): void => {
export const setConnectionOptions = (options: Partial<TypeORMConnectionOptions>): void => {
;(global as any)[KEY].overrideConnectionOptions = options
}

Expand Down

0 comments on commit e8a1c80

Please sign in to comment.