pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
import * as React from 'react';
|
||||
export type TransitionContextValue = {
|
||||
/**
|
||||
* `true`, if the current element was requested to appear.
|
||||
*/
|
||||
requestedEnter: boolean;
|
||||
/**
|
||||
* Callback to be called when the element has completely exited.
|
||||
*/
|
||||
onExited: () => void;
|
||||
/**
|
||||
* Registers a child transition.
|
||||
* This is used to notify the parent `useTransitionTrigger` hook that a child transition exists
|
||||
* and state changes must be triggered by the context's callbck functions.
|
||||
*
|
||||
* Returns a function to unregister the child transition.
|
||||
*/
|
||||
registerTransition: () => () => void;
|
||||
};
|
||||
export declare const TransitionContext: React.Context<TransitionContextValue | null>;
|
||||
Reference in new issue
Block a user