Update packages/core/strapi/lib/types/core/strapi/index.d.ts

Co-authored-by: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
Bassel Kanso 2022-08-12 14:09:12 +03:00 committed by GitHub
parent b8e0ad7521
commit 770f6f7026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ export interface Strapi {
/**
* Find a service using its unique identifier
*/
service(uid: string): GenericService | undefined;
service<T extends GenericService = GenericService>(uid: string): T | undefined;
/**
* Getter for the Strapi controllers container