mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Adding tests file and adjusting meshblu definitions
This commit is contained in:
Vendored
+9
-9
@@ -26,15 +26,6 @@ declare module Meshblu {
|
||||
|
||||
interface Connection {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param uuid
|
||||
* @param fn The callback to be called. It should take one parameter, err,
|
||||
* which will be null if there was no problem, and one parameter, publicKey,
|
||||
* of type NodeRSA.
|
||||
*/
|
||||
getPublicKey(uuid: string, fn:(err: Error, publicKey: any) => void): void;
|
||||
|
||||
/**
|
||||
* Authenticate with Meshblu.
|
||||
* @returns This Connection.
|
||||
@@ -166,6 +157,15 @@ declare module Meshblu {
|
||||
*/
|
||||
revokeToken(data: ConnectionOptions, fn:(result: Device) => void): void
|
||||
|
||||
/**
|
||||
*
|
||||
* @param uuid
|
||||
* @param fn The callback to be called. It should take one parameter, err,
|
||||
* which will be null if there was no problem, and one parameter, publicKey,
|
||||
* of type NodeRSA.
|
||||
*/
|
||||
getPublicKey(uuid: string, fn:(err: Error, publicKey: any) => void): void;
|
||||
|
||||
/*
|
||||
* Lack of documentation about these api functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user