photo-context.d.ts 481 B

123456789101112
  1. import React from 'react';
  2. import { dataType } from './types';
  3. export declare type onShowType = (key?: string) => void;
  4. export declare type addItemType = ({ key, src, originRef, intro }: dataType) => void;
  5. export declare type removeItemType = (key?: string) => void;
  6. export interface PhotoContextType {
  7. onShow: onShowType;
  8. addItem: addItemType;
  9. removeItem: removeItemType;
  10. }
  11. declare const _default: React.Context<PhotoContextType>;
  12. export default _default;