fix: move ID type definition in databse

This commit is contained in:
Marc-Roig 2023-06-01 17:37:41 +02:00
parent 79f025e7aa
commit 52b37c3fcf
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ import { LifecycleProvider } from './lifecycles';
import { MigrationProvider } from './migrations';
import { SchemaProvider } from './schema';
type ID = number | string;
type LogicalOperators<T> = {
$and?: WhereParams<T>[];
$or?: WhereParams<T>[];

View File

@ -1,7 +1,7 @@
import { Database } from '@strapi/database';
import { Strapi } from '../../';
import type { ID } from '@strapi/database';
type ID = number | string;
import { Strapi } from '../../';
type EntityServiceAction =
| 'findMany'