We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e8c349 commit b011843Copy full SHA for b011843
packages/decap-cms-app/src/init/index.ts
@@ -131,12 +131,12 @@ export async function registerAll() {
131
]);
132
}
133
134
-type Options = InitOptions & { setup?: (cms: CMS) => Promise<void> };
+type Options = InitOptions & { setup?: (cms: CMS) => void | Promise<void> };
135
136
export async function init(options: Options) {
137
const { config, setup } = options;
138
await Promise.all([
139
- setup,
+ setup && setup(cms),
140
registerCoreWidgets(),
141
registerLocale(config.locale || 'en'),
142
registerBackend(config.local_backend ? 'proxy' : config.backend.name),
0 commit comments