UNPKG

@inyourarea/aard-client-js

Version:

A JavaScript tracking library for the Aard Platform at InYourArea.co.uk. Record and track activity across the different services of the platform.

9 lines (8 loc) 471 B
import React from 'react'; import { Recorder } from '../recorder'; interface WithRecorderProps { recorder: Recorder; } declare type MapRecorderToProps<T> = (recorder: Recorder) => T; declare const withAardRecorder: <M extends {} = WithRecorderProps>(mapRecorderToProps?: MapRecorderToProps<M> | undefined) => <P extends Partial<M>>(WrappedComponent: React.ComponentType<P>) => React.ComponentType<Pick<P, Exclude<keyof P, keyof M>>>; export default withAardRecorder;