Update packages/core/strapi/lib/types/core-api/service.d.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
Christian 2023-06-07 16:46:31 +02:00 committed by GitHub
parent e903193ff0
commit 4211eca6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,10 +37,10 @@ export type SingleType = Base & {
delete?(params: object): Promise<Entity> | Entity;
};
export type ContentType<T extends Common.UID.ContentType> = Utils.Expression.MatchFirst<
export type ContentType<TContentTypeUID extends Common.UID.ContentType> = Utils.Expression.MatchFirst<
[
Utils.Expression.Test<Common.UID.IsCollectionType<T>, CollectionType>,
Utils.Expression.Test<Common.UID.IsSingleType<T>, SingleType>
Utils.Expression.Test<Common.UID.IsCollectionType<TContentTypeUID>, CollectionType>,
Utils.Expression.Test<Common.UID.IsSingleType<TContentTypeUID>, SingleType>
],
Base
>;