@iotize/tap
Version:
IoTize Device client for Javascript
20 lines (19 loc) • 641 B
TypeScript
import { ServiceContainer } from '@iotize/tap';
import { TapConfig } from '@iotize/tap/config/schema/v1';
declare type RecursivePartial<T> = {
[P in keyof T]?: RecursivePartial<T[P]>;
};
export interface ReadConfigContext<ParamType extends number | undefined> {
service: ServiceContainer;
firmwareVersion?: string;
param: ParamType;
config?: RecursivePartial<TapConfig>;
}
export interface WriteConfigContext<ValueType, ParamType extends number | undefined> {
service: ServiceContainer;
firmwareVersion?: string;
value: ValueType;
param: ParamType;
config?: TapConfig;
}
export {};