Skip to content

Commit 580e23e

Browse files
committed
Merge pull request microsoft#1358 from Arnavion/fix-missing-return-types
Fix missing return types.
2 parents 5d8ab1a + 4c93e47 commit 580e23e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/lib/es6.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ interface NumberConstructor {
211211
* Converts a string to a floating-point number.
212212
* @param string A string that contains a floating-point number.
213213
*/
214-
parseFloat(string: string);
214+
parseFloat(string: string): number;
215215

216216
/**
217217
* Converts A string to an integer.
@@ -438,7 +438,7 @@ interface StringConstructor {
438438
* @param template A well-formed template string call site representation.
439439
* @param substitutions A set of substitution values.
440440
*/
441-
raw(template: TemplateStringsArray, ...substitutions: any[]);
441+
raw(template: TemplateStringsArray, ...substitutions: any[]): string;
442442
}
443443

444444
interface IteratorResult<T> {
@@ -472,8 +472,8 @@ declare var GeneratorFunction: GeneratorFunctionConstructor;
472472

473473
interface Generator<T> extends Iterator<T> {
474474
next(value?: any): IteratorResult<T>;
475-
throw (exception: any);
476-
return (value: T);
475+
throw (exception: any): IteratorResult<T>;
476+
return (value: T): IteratorResult<T>;
477477
// [Symbol.toStringTag]: string;
478478
}
479479

@@ -874,7 +874,7 @@ interface DataView {
874874
}
875875

876876
interface DataViewConstructor {
877-
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number);
877+
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
878878
}
879879
declare var DataView: DataViewConstructor;
880880

0 commit comments

Comments
 (0)