@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.
20 lines (19 loc) • 382 B
text/typescript
export interface Rule {
scope: string
target_type: string
matchers: Matcher[]
transformers: Transformer[][]
destinationName?: string
}
export interface Matcher {
type: string
ir: string
}
export interface Transformer {
type: string
config?: any
}
export interface Store {
new (rules?: Rule[]): this
getRulesByDestinationName(destinationName: string): Rule[]
}