Skip to content

Commit 7202742

Browse files
Added missing type annotations
1 parent 71e9511 commit 7202742

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sdk.soap/sdk.soap.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare module Sdk
7373
* Adds a string array of column names.
7474
* @param columns A string array of column names.
7575
*/
76-
addColumns( columns: Array<string> );
76+
addColumns( columns: Array<string> ): void;
7777

7878
/**
7979
* Sets the AllColumns property.
@@ -141,7 +141,7 @@ declare module Sdk
141141
* Adds an array of objects to the collection.
142142
* @param items An array of items to add to the collection.
143143
*/
144-
addRange( items ): void;
144+
addRange( items: T[] ): void;
145145

146146
/**
147147
* Removes all items from the collection.
@@ -158,7 +158,7 @@ declare module Sdk
158158
* Applies the action contained within a delegate function.
159159
* @param fn Delegate function with parameters for item and index.
160160
*/
161-
forEach( fn: ( item: T, index: number ) => any );
161+
forEach( fn: ( item: T, index: number ) => any ): void;
162162

163163
/**
164164
* Gets the item in the collection at the specified index.
@@ -279,7 +279,7 @@ declare module Sdk
279279
* Sets whether the results of the query exceeds the total record count.
280280
* @param totalRecordCountLimitExceeded Whether the results of the query exceeds the total record count.
281281
*/
282-
setTotalRecordCountLimitExceeded( totalRecordCountLimitExceeded: boolean );
282+
setTotalRecordCountLimitExceeded( totalRecordCountLimitExceeded: boolean ): void;
283283

284284
/**
285285
* XML definition of an the child nodes of an entity.
@@ -318,7 +318,7 @@ declare module Sdk
318318
* Removes an entity reference to the collection.
319319
* @param entityReference The entity reference to remove.
320320
*/
321-
remove( entityReference: Sdk.EntityReference );
321+
remove( entityReference: Sdk.EntityReference ): void;
322322

323323
/**
324324
* Returns a view of the data in an entity reference collection instance.
@@ -455,15 +455,15 @@ declare module Sdk
455455
/**
456456
* Internal Use Only
457457
*/
458-
setValidValue( value );
458+
setValidValue( value: any ): void;
459459

460460

461461
/// prototype methods
462462

463463
/**
464464
* XML node for Attribute.
465465
*/
466-
toXml( action ): string;
466+
toXml( action: string ): string;
467467
}
468468

469469
class Boolean extends AttributeBase
@@ -750,7 +750,7 @@ declare module Sdk
750750
* Sets the collection of attributes for the entity.
751751
* @param attributes The collection of attributes for the entity.
752752
*/
753-
setAttributes( attributes: Sdk.AttributeCollection );
753+
setAttributes( attributes: Sdk.AttributeCollection ): void;
754754

755755
/**
756756
* Gets the state of the entity.
@@ -795,7 +795,7 @@ declare module Sdk
795795
* Sets the logical name of the entity.
796796
* @param type The logical name of the entity.
797797
*/
798-
setType( type ): void;
798+
setType( type: string ): void;
799799

800800
/**
801801
* Gets a collection of related entities.
@@ -813,7 +813,7 @@ declare module Sdk
813813
* @param attribute The attribute to add
814814
* @param isChanged Whether the attribute should be considered changed, the default is true.
815815
*/
816-
addAttribute( attribute: Sdk.AttributeBase, isChanged?: boolean );
816+
addAttribute( attribute: Sdk.AttributeBase, isChanged?: boolean ): void;
817817

818818
/**
819819
* Adds an entity to the related entities.
@@ -831,7 +831,7 @@ declare module Sdk
831831
* Sets the value to indicate whether data for the entity has changed.
832832
* @param isChanged The value to indicate whether data for the entity has changed.
833833
*/
834-
setIsChanged( isChanged: boolean );
834+
setIsChanged( isChanged: boolean ): void;
835835

836836
/**
837837
* Gets the value of the specified attribute.
@@ -842,7 +842,7 @@ declare module Sdk
842842
/**
843843
* Generates properties for the entity based on metadata.
844844
*/
845-
initializeSubClass( metadata );
845+
initializeSubClass( metadata ): void;
846846

847847
/**
848848
* Sets the value of the specified attribute.

0 commit comments

Comments
 (0)