mirror of
https://github.com/strapi/strapi.git
synced 2025-08-16 20:57:34 +00:00
Add the components getter for the Strapi interface
This commit is contained in:
parent
57d7deea7d
commit
f7fff30f70
@ -2,8 +2,8 @@ import type Koa from 'koa';
|
|||||||
import { Database } from '@strapi/database';
|
import { Database } from '@strapi/database';
|
||||||
|
|
||||||
import type { StringMap } from './utils';
|
import type { StringMap } from './utils';
|
||||||
import type { GenericController } from '../../../core-api/controller'
|
import type { GenericController } from '../../../core-api/controller';
|
||||||
import type { GenericService } from '../../../core-api/service'
|
import type { GenericService } from '../../../core-api/service';
|
||||||
|
|
||||||
// TODO move custom fields types to a separate file
|
// TODO move custom fields types to a separate file
|
||||||
interface CustomFieldServerOptions {
|
interface CustomFieldServerOptions {
|
||||||
@ -92,6 +92,13 @@ export interface Strapi {
|
|||||||
*/
|
*/
|
||||||
contentType(uid: string): any;
|
contentType(uid: string): any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for the Strapi component container
|
||||||
|
*
|
||||||
|
* It returns all the registered components
|
||||||
|
*/
|
||||||
|
readonly components: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The custom fields registry
|
* The custom fields registry
|
||||||
*
|
*
|
||||||
@ -361,7 +368,6 @@ export interface Strapi {
|
|||||||
*/
|
*/
|
||||||
log: any;
|
log: any;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to manage cron within Strapi
|
* Used to manage cron within Strapi
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user