mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 12:46:36 +08:00
25 lines
499 B
TypeScript
25 lines
499 B
TypeScript
// Type definitions for roslib.js
|
|
// Project: http://wiki.ros.org/roslibjs
|
|
// Definitions by: Stefan Profanter <https://github.com/Pro/>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module ROSLIB {
|
|
export class Ros {
|
|
constructor(data: {
|
|
url: string
|
|
});
|
|
|
|
on(eventName: string, callback: (event: any) => void) : void;
|
|
connect(url: string) : void;
|
|
}
|
|
|
|
|
|
export class Service {
|
|
constructor(data: {
|
|
ros: Ros,
|
|
name: string,
|
|
serviceType: string
|
|
});
|
|
}
|
|
}
|