fix #43255: add new fields to @types/keystonejs__adapter-knex for adapter-knex v6.3 (#43256)

* fix #43255: add dropDatabase field to keystonejs__adapter-knex options

* fix: restore dependent typescript version 3.5

* fix: lint errors
This commit is contained in:
Abhijith Vijayan 2020-03-23 02:38:12 +05:30 committed by GitHub
parent 914615c9ee
commit 043b939aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
// Type definitions for @keystonejs/adapter-knex 5.1
// Type definitions for @keystonejs/adapter-knex 6.3
// Project: https://github.com/keystonejs/keystone
// Definitions by: Kevin Brown <https://github.com/thekevinbrown>
// Abhijith Vijayan <https://github.com/abhijithvijayan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
@ -15,6 +16,7 @@ declare module '@keystonejs/adapter-knex' {
knexOptions?: Config;
schemaName?: string;
listAdapterClass?: any;
dropDatabase?: boolean;
}
class KnexAdapter extends BaseKeystoneAdapter {
constructor(options?: KnexAdaptorOptions);