##// END OF EJS Templates
Corrected typings dijit/_WidgetBase, dojo/store
cin -
r16:f6ff0b17b520 v1.0.5 default
parent child
Show More
@@ -592,7 +592,7 declare namespace dijit {
592 * Set a property on a Stateful instance
592 * Set a property on a Stateful instance
593 */
593 */
594 set<K extends keyof this>(name: K, value: this[K], ...opts: unknown[]): this;
594 set<K extends keyof this>(name: K, value: this[K], ...opts: unknown[]): this;
595 set(values: Partial<this>): this;
595 set<K extends keyof this>(values: {[k in K]?: this[k]}): this;
596
596
597 /**
597 /**
598 * Watches a property for changes
598 * Watches a property for changes
@@ -48,7 +48,7 declare namespace dojo {
48 matches(object: T): boolean;
48 matches(object: T): boolean;
49 }
49 }
50
50
51 type BaseQueryType = string | object | ((...params: any[]) => any);
51 type BaseQueryType = string | object | ((...params: unknown[]) => unknown);
52
52
53 interface QueryEngine<T extends object, Q extends BaseQueryType> {
53 interface QueryEngine<T extends object, Q extends BaseQueryType> {
54 <O extends QueryOptions>(query: Q, options?: O): QueryEngineFunction<T>;
54 <O extends QueryOptions>(query: Q, options?: O): QueryEngineFunction<T>;
@@ -209,12 +209,12 declare namespace dojo {
209 /**
209 /**
210 * Stores an object
210 * Stores an object
211 */
211 */
212 put(object: T, directives?: PutDirectives<T>): any;
212 put(object: T, directives?: PutDirectives<T>): unknown;
213
213
214 /**
214 /**
215 * Creates an object, throws an error if the object already exists
215 * Creates an object, throws an error if the object already exists
216 */
216 */
217 add(object: T, directives?: PutDirectives<T>): any;
217 add(object: T, directives?: PutDirectives<T>): unknown;
218
218
219 /**
219 /**
220 * Deletes an object by its identity
220 * Deletes an object by its identity
@@ -249,12 +249,12 declare namespace dojo {
249 /**
249 /**
250 * Stores an object
250 * Stores an object
251 */
251 */
252 put(object: T, directives?: PutDirectives<T>): PromiseLike<any>;
252 put(object: T, directives?: PutDirectives<T>): PromiseLike<unknown>;
253
253
254 /**
254 /**
255 * Creates an object, throws an error if the object already exists
255 * Creates an object, throws an error if the object already exists
256 */
256 */
257 add(object: T, directives?: PutDirectives<T>): PromiseLike<any>;
257 add(object: T, directives?: PutDirectives<T>): PromiseLike<unknown>;
258
258
259 /**
259 /**
260 * Deletes an object by its identity
260 * Deletes an object by its identity
@@ -297,12 +297,12 declare namespace dojo {
297 /**
297 /**
298 * Stores an object
298 * Stores an object
299 */
299 */
300 put(object: T, directives?: PutDirectives<T>): any;
300 put(object: T, directives?: PutDirectives<T>): unknown;
301
301
302 /**
302 /**
303 * Creates an object, throws an error if the object already exists
303 * Creates an object, throws an error if the object already exists
304 */
304 */
305 add(object: T, directives?: PutDirectives<T>): any;
305 add(object: T, directives?: PutDirectives<T>): unknown;
306
306
307 /**
307 /**
308 * Deletes an object by its identity
308 * Deletes an object by its identity
@@ -485,13 +485,13 declare namespace dojo {
485 * Stores an object. This will trigger a PUT request to the server
485 * Stores an object. This will trigger a PUT request to the server
486 * if the object has an id, otherwise it will trigger a POST request.
486 * if the object has an id, otherwise it will trigger a POST request.
487 */
487 */
488 put(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<any>;
488 put(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<unknown>;
489
489
490 /**
490 /**
491 * Adds an object. This will trigger a PUT request to the server
491 * Adds an object. This will trigger a PUT request to the server
492 * if the object has an id, otherwise it will trigger a POST request.
492 * if the object has an id, otherwise it will trigger a POST request.
493 */
493 */
494 add(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<any>;
494 add(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<unknown>;
495
495
496 /**
496 /**
497 * Deletes an object by its identity. This will trigger a DELETE request to the server.
497 * Deletes an object by its identity. This will trigger a DELETE request to the server.
General Comments 0
You need to be logged in to leave comments. Login now