Skip to content

Commit 68114f9

Browse files
committed
Merge pull request DefinitelyTyped#4349 from jandic/master
Corrected return type for registry.byId()
2 parents fb37438 + c18e95e commit 68114f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dojo/dijit.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34291,7 +34291,7 @@ declare module dijit {
3429134291
*
3429234292
* @param id
3429334293
*/
34294-
byId(id: String): any;
34294+
byId(id: String): dijit._WidgetBase;
3429534295
/**
3429634296
* A synthetic clone of array.every acting explicitly on this WidgetSet
3429734297
*
@@ -105714,14 +105714,14 @@ declare module dijit {
105714105714
*
105715105715
* @param id
105716105716
*/
105717-
byId(id: String): String;
105717+
byId(id: String): dijit._WidgetBase;
105718105718
/**
105719105719
* Find a widget by it's id.
105720105720
* If passed a widget then just returns the widget.
105721105721
*
105722105722
* @param id
105723105723
*/
105724-
byId(id: dijit._WidgetBase): String;
105724+
byId(id: dijit._WidgetBase): dijit._WidgetBase;
105725105725
/**
105726105726
* Returns the widget corresponding to the given DOMNode
105727105727
*
@@ -105956,14 +105956,14 @@ declare module dijit {
105956105956
*
105957105957
* @param id
105958105958
*/
105959-
byId(id: String): String;
105959+
byId(id: String): dijit._WidgetBase;
105960105960
/**
105961105961
* Find a widget by it's id.
105962105962
* If passed a widget then just returns the widget.
105963105963
*
105964105964
* @param id
105965105965
*/
105966-
byId(id: dijit._WidgetBase): String;
105966+
byId(id: dijit._WidgetBase): dijit._WidgetBase;
105967105967
/**
105968105968
* Returns the widget corresponding to the given DOMNode
105969105969
*

0 commit comments

Comments
 (0)