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 @@ -622,24 +622,24 @@ declare namespace dijit { * Value must be among the list of locales specified during by the Dojo bootstrap, * formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us). */ - lang: string; + lang?: string; /** * Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir) * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's * default direction. */ - dir: string; + dir?: string; /** * HTML class attribute */ - class: string; + class?: string; /** * HTML style attributes as cssText string or name/value hash */ - style: string; + style?: string; /** * HTML title attribute. @@ -651,13 +651,13 @@ declare namespace dijit { * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's * interpreted as HTML. */ - title: string; + title?: string; /** * When this widget's title attribute is used to for a tab label, accordion pane title, etc., * this specifies the tooltip to appear when the mouse is hovered over that text. */ - tooltip: string; + tooltip?: string; /** * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate @@ -668,7 +668,7 @@ declare namespace dijit { /** * pointer to original DOM node */ - srcNodeRef: HTMLElement; + srcNodeRef?: HTMLElement; /** * This is our visible representation of the widget! Other DOM @@ -682,7 +682,7 @@ declare namespace dijit { * Designates where children of the source DOM node will be placed. * "Children" in this case refers to both DOM nodes and widgets. */ - containerNode: HTMLElement; + containerNode?: HTMLElement; /** * The document this widget belongs to. If not specified to constructor, will default to @@ -701,7 +701,7 @@ declare namespace dijit { * The text direction can be different than the GUI direction by using this parameter in creation * of a widget. */ - textDir: string; + textDir?: string; _started?: boolean; 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: unknown[]) => unknown); + type BaseQueryType = string | object | ((...params: unknown[]) => boolean); interface QueryEngine { (query: Q, options?: O): QueryEngineFunction; diff --git a/dojo-typings/src/test/ts/_WidgetTests.ts b/dojo-typings/src/test/ts/_WidgetTests.ts --- a/dojo-typings/src/test/ts/_WidgetTests.ts +++ b/dojo-typings/src/test/ts/_WidgetTests.ts @@ -18,7 +18,7 @@ class ScheduleWidget extends _WidgetBase data: string[]; _onClick() { - this.set("data", "", ""); + this.set("data", ["", ""]); const t = this.get("title"); this.set({ @@ -35,7 +35,7 @@ const w = new ScheduleWidget({title: "Ye w.get("data"); -w.set("data", "a","b"); +w.set("data", ["a","b"]); w.set({ data: ["a", "b"] });