UNPKG

@dmgt/google-ad-manager-api

Version:
12 lines (11 loc) 362 B
export interface Value<K extends string, V = any> { key: K; value: { attributes: { 'xsi:type': string; }; value: V; }; } export type ValueKey<V extends Value<string>> = V extends Value<infer Key> ? Key : never; export declare function value<K extends string, V = any>(key: K, type: string, value: V): Value<K, V>;