```ts export type OnEnter = (success: boolean) => void; export interface OnLeave { (success: boolean): void } ``` How should we reasonably add the type declaration of the above function type 'OnEnter' and 'OnLeave' ? I tried as follows:  