UNPKG

hypertune

Version:

[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt

22 lines 960 B
import { CreateOptions, ObjectValue, ObjectValueWithVariables, Query } from "../shared/types"; import Node, { NodeProps } from "./Node"; /** * TODO * - Remove `queryCode`; consolidate with `query`; benefit of having them * separate was `queryCode` can be codegen'd differently, but this is not * necessary * - Add default values to arguments where possible * - Move all arguments into `CreateOptions` with type parameters if they have * generated types, then codegen concrete `CreateSourceOptions` */ export default function create<T extends Node = Node>({ NodeConstructor, token, query, queryId, queryCode, variableValues, override, options, }: { NodeConstructor?: new (props: NodeProps) => T; token: string; query?: Query<ObjectValueWithVariables> | null; queryId?: string; queryCode?: string; variableValues?: ObjectValue; override?: object | null; options?: CreateOptions; }): T; //# sourceMappingURL=create.d.ts.map