Dashboard sipadu mbip
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

forwardRef.d.ts 654B

123456789101112131415161718192021222324
  1. // TypeScript Version: 3.0
  2. declare module 'react-context-toolbox/forwardRef' {
  3. import * as React from 'react';
  4. interface ForwardRefOptions<TProps> {
  5. displayName?: string;
  6. propTypes?: React.ValidationMap<TProps>;
  7. defaultProps?: Partial<TProps>;
  8. allowFallback?: boolean;
  9. }
  10. function forwardRef<TRef, TProps>(
  11. renderFn: (
  12. props: TProps & { children?: React.ReactNode },
  13. ref: React.Ref<TRef> | null,
  14. ) => React.ReactElement<any> | null,
  15. options?: ForwardRefOptions<TProps>,
  16. ): React.ForwardRefExoticComponent<
  17. React.PropsWithRef<TProps> & React.RefAttributes<TRef>
  18. >;
  19. export default forwardRef;
  20. }