UNPKG

@segment/analytics-next

Version:

Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.

13 lines 424 B
import type { Matcher, Rule } from '../../vendor/tsub/types'; import { DestinationMiddlewareFunction } from '../middleware'; type RoutingRuleMatcher = Matcher & { config?: { expr: string; }; }; export type RoutingRule = Rule & { matchers: RoutingRuleMatcher[]; }; export declare const tsubMiddleware: (rules: RoutingRule[]) => DestinationMiddlewareFunction; export {}; //# sourceMappingURL=index.d.ts.map