We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wrote my version of the typings. I will be deleting them so I'll paste them here in case we ever want to polish and add them.
declare module 'resin-device-logs' { import { EventEmitter } from 'events' type PubNubKeys = { publishKey?: string subscribeKey?: string } type Device = { logs_channel?: string uuid?: string } interface Emitter extends EventEmitter { unsubscribe() : void } type Message = { message: string timestamp?: number isSystem: boolean, serviceId?: string } type Options = { channel: string reverse?: boolean // default false count?: number // default 100 } export function subscribe(pubnubKeys: PubNubKeys, device: Device): EventEmitter export function history(pubnubKeys: PubNubKeys, device: Device, options?: Options): Promise<Message[]> export function historySinceLastClear(pubnubKeys: PubNubKeys, device: Device, options?: Options): Promise<Message[]> export function clear(pubnubKeys: PubNubKeys, device: Device): Promise<any> export function getLastClearTime(pubnubKeys: PubNubKeys, device: Device): Promise<number> }
The text was updated successfully, but these errors were encountered:
We are going to want to convert this all to typescript soonish, so this will definitely be useful, thanks!
Sorry, something went wrong.
No branches or pull requests
I wrote my version of the typings. I will be deleting them so I'll paste them here in case we ever want to polish and add them.
The text was updated successfully, but these errors were encountered: