diff --git a/dojo-typings/src/main/typings/dijit/dijit.d.ts b/dojo-typings/src/main/typings/dijit/dijit.d.ts --- a/dojo-typings/src/main/typings/dijit/dijit.d.ts +++ b/dojo-typings/src/main/typings/dijit/dijit.d.ts @@ -592,7 +592,7 @@ declare namespace dijit { * Set a property on a Stateful instance */ set(name: K, value: this[K], ...opts: unknown[]): this; - set(values: Partial): this; + set(values: {[k in K]?: this[k]}): this; /** * Watches a property for changes diff --git a/dojo-typings/src/main/typings/dojo/store.d.ts b/dojo-typings/src/main/typings/dojo/store.d.ts --- a/dojo-typings/src/main/typings/dojo/store.d.ts +++ b/dojo-typings/src/main/typings/dojo/store.d.ts @@ -48,7 +48,7 @@ declare namespace dojo { matches(object: T): boolean; } - type BaseQueryType = string | object | ((...params: any[]) => any); + type BaseQueryType = string | object | ((...params: unknown[]) => unknown); interface QueryEngine { (query: Q, options?: O): QueryEngineFunction; @@ -209,12 +209,12 @@ declare namespace dojo { /** * Stores an object */ - put(object: T, directives?: PutDirectives): any; + put(object: T, directives?: PutDirectives): unknown; /** * Creates an object, throws an error if the object already exists */ - add(object: T, directives?: PutDirectives): any; + add(object: T, directives?: PutDirectives): unknown; /** * Deletes an object by its identity @@ -249,12 +249,12 @@ declare namespace dojo { /** * Stores an object */ - put(object: T, directives?: PutDirectives): PromiseLike; + put(object: T, directives?: PutDirectives): PromiseLike; /** * Creates an object, throws an error if the object already exists */ - add(object: T, directives?: PutDirectives): PromiseLike; + add(object: T, directives?: PutDirectives): PromiseLike; /** * Deletes an object by its identity @@ -297,12 +297,12 @@ declare namespace dojo { /** * Stores an object */ - put(object: T, directives?: PutDirectives): any; + put(object: T, directives?: PutDirectives): unknown; /** * Creates an object, throws an error if the object already exists */ - add(object: T, directives?: PutDirectives): any; + add(object: T, directives?: PutDirectives): unknown; /** * Deletes an object by its identity @@ -485,13 +485,13 @@ declare namespace dojo { * Stores an object. This will trigger a PUT request to the server * if the object has an id, otherwise it will trigger a POST request. */ - put(object: T, options?: JsonRestPutDirectives): PromiseLike; + put(object: T, options?: JsonRestPutDirectives): PromiseLike; /** * Adds an object. This will trigger a PUT request to the server * if the object has an id, otherwise it will trigger a POST request. */ - add(object: T, options?: JsonRestPutDirectives): PromiseLike; + add(object: T, options?: JsonRestPutDirectives): PromiseLike; /** * Deletes an object by its identity. This will trigger a DELETE request to the server.