core/strapi.ts

strapi · packages/core/types/src/core/strapi.ts · typescript · MIT
database

TypeScript interface defining the core Strapi application shape, including services, plugins, and configuration.

// Source: https://github.com/strapi/strapi | License: MIT | Copyright 2015-present Strapi Solutions SAS
// Provided via justclaw.it.com; keep this notice with the code.
import type { Logger } from '@strapi/logger';
import type { Database } from '@strapi/database';

import type { PropertyPath } from 'lodash';
import type * as Core from '.';
import type * as Modules from '../modules';
import type * as Schema from '../schema';

import type * as UID from '../uid';

import type { Container } from './container';

export interface Strapi extends Container {
  server: Modules.Server.Server;
  log: Logger;
  fs: StrapiFS;
  eventHub: Modules.EventHub.EventHub;
  startupLogger: StartupLogger;
  cron: Modules.Cron.CronService;
  store: Modules.CoreStore.CoreStore;
  /**
   * @deprecated Use the Docu

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key