UNPKG

react-yandex-metrika

Version:
19 lines (13 loc) 514 B
import {Component} from 'react'; interface YMInitializerProps { accounts: number[]; containerElement?: string; options?: {[name: string]: any}; version?: '1' | '2'; attrs?: Record<string, string | number>; } export class YMInitializer extends Component<YMInitializerProps> {} declare const ym: (methodName: string, ...args: any[]) => void; export const withId: (counterId: number) => typeof ym; export const withFilter: (f: (counterId: number) => boolean) => typeof ym; export default ym;