mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 00:49:49 +00:00
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import type { Strapi } from '@strapi/strapi';
|
|
|
|
export default {
|
|
register({ strapi }: { strapi: Strapi }) {
|
|
// No error when trying the access & set the
|
|
strapi.customAddMethod = (n1, n2) => {
|
|
return n1 + n2;
|
|
};
|
|
},
|
|
|
|
bootstrap({ strapi }: { strapi: Strapi }) {
|
|
// This should return 42
|
|
strapi.customAddMethod(11, 31);
|
|
},
|
|
};
|