mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Update types
This commit is contained in:
parent
1a917d4eca
commit
d1cc5df7c5
@ -13,6 +13,7 @@ import { Callback, transactionCtx } from './transaction-context';
|
|||||||
// TODO: move back into strapi
|
// TODO: move back into strapi
|
||||||
import { transformContentTypes } from './utils/content-types';
|
import { transformContentTypes } from './utils/content-types';
|
||||||
import { validateDatabase } from './validations';
|
import { validateDatabase } from './validations';
|
||||||
|
import { Model } from './types';
|
||||||
|
|
||||||
interface Settings {
|
interface Settings {
|
||||||
forceMigration?: boolean;
|
forceMigration?: boolean;
|
||||||
@ -23,7 +24,7 @@ interface Settings {
|
|||||||
export interface DatabaseConfig {
|
export interface DatabaseConfig {
|
||||||
connection: Knex.Config;
|
connection: Knex.Config;
|
||||||
settings: Settings;
|
settings: Settings;
|
||||||
models: any;
|
models: Model[];
|
||||||
}
|
}
|
||||||
|
|
||||||
class Database {
|
class Database {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user