mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Ngsijs npm package types file (#23023)
* add types for ngsijs package * add types for ngsijs package * clean d.ts * clean d.ts * strictFunctionTypes true * fix errors with paddings * another fix updating tsconfig after removing test file * eofline * trailing whitespaces ¬¬ * Remove additional dependence
This commit is contained in:
parent
236276b2e6
commit
206bedb685
58
types/ngsijs/index.d.ts
vendored
Normal file
58
types/ngsijs/index.d.ts
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
// Type definitions for ngsijs 1.0
|
||||
// Project: https://github.com/conwetlab/ngsijs
|
||||
// Definitions by: Guillermofr <https://github.com/guillermofr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export class Connection {
|
||||
constructor(url: any);
|
||||
v2: Connection.V2;
|
||||
v1: Connection.V1;
|
||||
}
|
||||
|
||||
export namespace Connection {
|
||||
class V1 {
|
||||
constructor(connection: any);
|
||||
addAttributes(toAdd: any, callbacks: any): void;
|
||||
cancelAvailabilitySubscription(subId: any, callbacks: any): void;
|
||||
cancelRegistration(regId: any, callbacks: any): void;
|
||||
cancelSubscription(subId: any, options: any): void;
|
||||
createAvailabilitySubscription(entities: any, attributeNames: any, duration: any, restriction: any, options: any, ...args: any[]): void;
|
||||
createRegistration(entities: any, attributes: any, duration: any, providingApplication: any, callbacks: any): void;
|
||||
createSubscription(entities: any, attributeNames: any, duration: any, throttling: any, cond: any, options: any, ...args: any[]): void;
|
||||
deleteAttributes(toDelete: any, callbacks: any): void;
|
||||
discoverAvailability(entities: any, attributeNames: any, callbacks: any): void;
|
||||
getAvailableTypes(options: any): void;
|
||||
getTypeInfo(type: any, options: any): void;
|
||||
query(entities: any, attributesName: any, options: any): void;
|
||||
updateAttributes(update: any, callbacks: any): void;
|
||||
updateAvailabilitySubscription(subId: any, entities: any, attributeNames: any, duration: any, restriction: any, callbacks: any): void;
|
||||
updateRegistration(regId: any, entities: any, attributes: any, duration: any, providingApplication: any, callbacks: any): any;
|
||||
updateSubscription(subId: any, duration: any, throttling: any, cond: any, options: any): void;
|
||||
}
|
||||
|
||||
class V2 {
|
||||
constructor(connection: any);
|
||||
appendEntityAttributes(changes: any, options: any): any;
|
||||
batchQuery(query: any, options: any): any;
|
||||
batchUpdate(changes: any, options: any): any;
|
||||
createEntity(entity: any, options: any): any;
|
||||
createSubscription(subscription: any, options: any): any;
|
||||
deleteEntity(options: any): any;
|
||||
deleteEntityAttribute(options: any): any;
|
||||
deleteSubscription(options: any): any;
|
||||
getEntity(options: any): any;
|
||||
getEntityAttribute(options: any): any;
|
||||
getEntityAttributeValue(options: any): any;
|
||||
getEntityAttributes(options: any): any;
|
||||
getSubscription(options: any): any;
|
||||
getType(options: any): any;
|
||||
listEntities(options: any): any;
|
||||
listSubscriptions(options: any): any;
|
||||
listTypes(options: any): any;
|
||||
replaceEntityAttribute(changes: any, options: any): any;
|
||||
replaceEntityAttributeValue(options: any): any;
|
||||
replaceEntityAttributes(entity: any, options: any): any;
|
||||
updateEntityAttributes(changes: any, options: any): any;
|
||||
updateSubscription(changes: any, options: any): any;
|
||||
}
|
||||
}
|
||||
22
types/ngsijs/tsconfig.json
Normal file
22
types/ngsijs/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts"
|
||||
]
|
||||
}
|
||||
1
types/ngsijs/tslint.json
Normal file
1
types/ngsijs/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user