mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Modified tsconfig.json files based on errors received from dtslint. Removed const in enum declarations based on errors received from tsLint
This commit is contained in:
6
types/clearbladejs-client/index.d.ts
vendored
6
types/clearbladejs-client/index.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Jim Bouquet <https://github.com/ClearBlade/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
//
|
||||
// TypeScript Version: 2.1
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
/// <reference types="paho-mqtt" />
|
||||
|
||||
@@ -134,12 +134,12 @@ interface Collection {
|
||||
count(query: Query, callback: CbCallback): void;
|
||||
}
|
||||
|
||||
declare const enum QuerySortDirections {
|
||||
declare enum QuerySortDirections {
|
||||
QUERY_SORT_ASCENDING = "ASC",
|
||||
QUERY_SORT_DESCENDING = "DESC"
|
||||
}
|
||||
|
||||
declare const enum QueryConditions {
|
||||
declare enum QueryConditions {
|
||||
QUERY_EQUAL = "EQ",
|
||||
QUERY_NOTEQUAL = "NEQ",
|
||||
QUERY_GREATERTHAN = "GT",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES5",
|
||||
"moduleResolution": "node",
|
||||
"module": "none",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
@@ -12,11 +11,9 @@
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
".",
|
||||
"../",
|
||||
"../../node_modules/"
|
||||
"../"
|
||||
],
|
||||
"types": ["node"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
|
||||
12
types/clearbladejs-node/index.d.ts
vendored
12
types/clearbladejs-node/index.d.ts
vendored
@@ -1,3 +1,6 @@
|
||||
/// <reference types="request" />
|
||||
/// <reference types="mqtt" />
|
||||
|
||||
import { Response, RequestCallback } from "request/index";
|
||||
import { MqttClient, PacketCallback } from "mqtt";
|
||||
|
||||
@@ -6,10 +9,7 @@ import { MqttClient, PacketCallback } from "mqtt";
|
||||
// Definitions by: Jim Bouquet <https://github.com/ClearBlade/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
//
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
/// <reference types="request" />
|
||||
/// <reference types="mqtt" />
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
declare enum MessagingQOS {
|
||||
MESSAGING_QOS_AT_MOST_ONCE = 0,
|
||||
@@ -116,12 +116,12 @@ export interface Collection {
|
||||
remove(query: Query, callback: CbCallback): void;
|
||||
}
|
||||
|
||||
export declare const enum QuerySortDirections {
|
||||
export declare enum QuerySortDirections {
|
||||
QUERY_SORT_ASCENDING = 'ASC',
|
||||
QUERY_SORT_DESCENDING = 'DESC'
|
||||
}
|
||||
|
||||
export declare const enum QueryConditions {
|
||||
export declare enum QueryConditions {
|
||||
QUERY_EQUAL = 'EQ',
|
||||
QUERY_NOTEQUAL = 'NEQ',
|
||||
QUERY_GREATERTHAN = 'GT',
|
||||
|
||||
@@ -2,23 +2,17 @@
|
||||
"compileOnSave": true,
|
||||
"compilerOptions": {
|
||||
"target": "ES5",
|
||||
"module": "es6",
|
||||
"moduleResolution": "Node",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": false,
|
||||
"noStrictGenericChecks": false,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": false,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
".",
|
||||
"../",
|
||||
"../../node_modules/"
|
||||
],
|
||||
"types": ["node"],
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
|
||||
12
types/clearbladejs-server/index.d.ts
vendored
12
types/clearbladejs-server/index.d.ts
vendored
@@ -1,11 +1,11 @@
|
||||
/// <reference types="paho-mqtt" />
|
||||
|
||||
// Type definitions for clearbladejs Server SDK v1.0.0
|
||||
// Project: https://docs.clearblade.com/v/3/4-developer_reference/platformsdk/ClearBlade.js/
|
||||
// Definitions by: Jim Bouquet <https://github.com/ClearBlade/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
//
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
/// <reference types="paho-mqtt" />
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
interface BasicReq {
|
||||
readonly isLogging: boolean;
|
||||
@@ -140,12 +140,12 @@ interface Collection {
|
||||
count(query: Query, callback: CbCallback): void;
|
||||
}
|
||||
|
||||
declare const enum QuerySortDirections {
|
||||
declare enum QuerySortDirections {
|
||||
QUERY_SORT_ASCENDING = 'ASC',
|
||||
QUERY_SORT_DESCENDING = 'DESC'
|
||||
}
|
||||
|
||||
declare const enum QueryConditions {
|
||||
declare enum QueryConditions {
|
||||
QUERY_EQUAL = 'EQ',
|
||||
QUERY_NOTEQUAL = 'NEQ',
|
||||
QUERY_GREATERTHAN = 'GT',
|
||||
@@ -281,7 +281,7 @@ interface Device {
|
||||
create(newDevice: Object, callback: CbCallback): void;
|
||||
}
|
||||
|
||||
declare const enum TriggerModule {
|
||||
declare enum TriggerModule {
|
||||
DEVICE = "Device",
|
||||
Data = "Data",
|
||||
MESSAGING = "Messaging",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES5",
|
||||
"moduleResolution": "node",
|
||||
"module": "none",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
@@ -11,12 +10,8 @@
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
".",
|
||||
"../",
|
||||
"../../node_modules/"
|
||||
],
|
||||
"types": ["node"],
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user