@dmgt/google-ad-manager-api
Version:
Typed Google Ad Manager API
12 lines (11 loc) • 362 B
TypeScript
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>;