-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
34 lines (28 loc) · 1.19 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference path="./global.d.ts" />
import { SensorType, RobotType } from './lib/index';
export = PeraSwarm;
export as namespace PeraSwarm;
// High Level API
declare namespace PeraSwarm {
interface Coordinate {}
interface CoordinateZ extends Coordinate {}
interface GeneralCoordinate extends Coordinate {}
interface GeneralCoordinateZ extends CoordinateZ {}
interface CustomCoordinate extends Coordinate {}
interface CustomCoordinateZ extends CoordinateZ {}
// function validateCoordinate(coorinate: CoordinateType): boolean;
interface Sensor {}
class GeneralColorSensor implements Sensor {}
class GeneralCompassSensor implements Sensor {}
class GeneralDistanceSensor implements Sensor {}
class GeneralProximitySensor implements Sensor {}
class CustomColorSensor implements Sensor {}
class CustomCompassSensor implements Sensor {}
class CustomDistanceSensor implements Sensor {}
class CustomProximitySensor implements Sensor {}
function validateSensor(sensor: SensorType): boolean;
interface Robot {}
class GeneralRobot implements Robot {}
class CustomRobot implements Robot {}
function validateRobot(robot: Robot): boolean;
}