context.d.ts 391 B

123456789101112
  1. import * as React from 'react';
  2. export interface DrawerContextProps {
  3. pushDistance?: number | string;
  4. push: VoidFunction;
  5. pull: VoidFunction;
  6. }
  7. declare const DrawerContext: React.Context<DrawerContextProps>;
  8. export interface RefContextProps {
  9. panel?: React.Ref<HTMLDivElement>;
  10. }
  11. export declare const RefContext: React.Context<RefContextProps>;
  12. export default DrawerContext;