@mixer/interactive-node
Version:
A NodeJS and Browser compatible client for mixer.com's interactive 2 Protocol
22 lines (21 loc) • 620 B
TypeScript
import { IJSON, JSONPrimitive } from '../../../interfaces';
import { ETag } from './';
/**
* An IMeta property is one property within an IMeta map.
* It contains a value and an Etag.
*/
export interface IMetaProperty {
value: IJSON | JSONPrimitive;
/** @deprecated etags are no longer used, you can always omit/ignore this */
etag?: ETag;
}
/**
* Meta is a map of custom property names.
* The values can be any valid JSON type.
*
* Meta properties allow you to store custom Metadata on their attached interactive
* state element.
*/
export interface IMeta {
[property: string]: IMetaProperty;
}