@@ -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
444444interface IteratorResult < T > {
@@ -472,8 +472,8 @@ declare var GeneratorFunction: GeneratorFunctionConstructor;
472472
473473interface 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
876876interface DataViewConstructor {
877- new ( buffer : ArrayBuffer , byteOffset ?: number , byteLength ?: number ) ;
877+ new ( buffer : ArrayBuffer , byteOffset ?: number , byteLength ?: number ) : DataView ;
878878}
879879declare var DataView : DataViewConstructor ;
880880
0 commit comments