UNPKG

@featurevisor/sdk

Version:

Featurevisor SDK for Node.js and the browser

17 lines (16 loc) 745 B
import { Feature, Segment, DatafileContentV1, DatafileContentV2, Attribute, AttributeKey, SegmentKey, FeatureKey } from "@featurevisor/types"; export declare function parseJsonConditionsIfStringified<T>(record: T, key: string): T; export declare class DatafileReader { private schemaVersion; private revision; private attributes; private segments; private features; constructor(datafileJson: DatafileContentV1 | DatafileContentV2); getRevision(): string; getSchemaVersion(): string; getAllAttributes(): Attribute[]; getAttribute(attributeKey: AttributeKey): Attribute | undefined; getSegment(segmentKey: SegmentKey): Segment | undefined; getFeature(featureKey: FeatureKey): Feature | undefined; }