fix: type for CmsEventListener handler property (#5353)
This commit is contained in:
parent
00655964bf
commit
db66c7e8dd
8
packages/netlify-cms-core/index.d.ts
vendored
8
packages/netlify-cms-core/index.d.ts
vendored
@ -482,7 +482,13 @@ declare module 'netlify-cms-core' {
|
|||||||
|
|
||||||
export interface CmsEventListener {
|
export interface CmsEventListener {
|
||||||
name: 'prePublish' | 'postPublish' | 'preUnpublish' | 'postUnpublish' | 'preSave' | 'postSave';
|
name: 'prePublish' | 'postPublish' | 'preUnpublish' | 'postUnpublish' | 'preSave' | 'postSave';
|
||||||
handler: { entry: Map<string, any>; author: { login: string; name: string } };
|
handler: ({
|
||||||
|
entry,
|
||||||
|
author,
|
||||||
|
}: {
|
||||||
|
entry: Map<string, any>;
|
||||||
|
author: { login: string; name: string };
|
||||||
|
}) => any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CmsEventListenerOptions = any; // TODO: type properly
|
export type CmsEventListenerOptions = any; // TODO: type properly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user