UNPKG

@digicms/cms

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

14 lines (11 loc) 283 B
import { BaseContext } from 'koa'; import { Strapi } from '../../'; interface PolicyContext extends BaseContext { type: string; is(name): boolean; } export type Policy<T = unknown> = ( ctx: PolicyContext, cfg: T, { strapi: Strapi } ) => boolean | undefined;