mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Update packages/core/strapi/lib/types/core-api/service.d.ts
Co-authored-by: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
parent
e903193ff0
commit
4211eca6f3
@ -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
|
||||
>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user