UNPKG

@iotize/tap

Version:

IoTize Device client for Javascript

15 lines (14 loc) 566 B
import { TapResponse } from './response-impl'; import { Tap } from './tap'; /** * If response status code is NOT_IMPLEMENTED or NOT_FOUND it will returns the default value * @param responsePromise * @param defaultValue */ export declare function defaultValueIfTapRequetNotImplemented<T>(responsePromise: Promise<TapResponse<T>>, defaultValue: T): Promise<T>; /** * Utility function add a new getter to the Tap prototype */ export declare function defineTapPropertyExtension<T>(propName: string, factory: (context: { tap: Tap; }) => T): void;