@@ -44,7 +44,7 @@ export function stringify(token):string {
4444}
4545
4646export class StringWrapper {
47- static fromCharCode ( code :int ) {
47+ static fromCharCode ( code :int ) : string {
4848 return String . fromCharCode ( code ) ;
4949 }
5050
@@ -56,11 +56,11 @@ export class StringWrapper {
5656 return s . split ( regExp . multiple ) ;
5757 }
5858
59- static equals ( s :string , s2 :string ) {
59+ static equals ( s :string , s2 :string ) : boolean {
6060 return s === s2 ;
6161 }
6262
63- static replaceAll ( s :string , from :RegExp , replace :string ) {
63+ static replaceAll ( s :string , from :RegExp , replace :string ) : string {
6464 return s . replace ( from . multiple , replace ) ;
6565 }
6666}
@@ -122,14 +122,14 @@ export class NumberWrapper {
122122 return parseFloat ( text ) ;
123123 }
124124
125- static isNaN ( value ) {
126- return isNaN ( value ) ;
127- }
128-
129125 static get NaN ( ) :number {
130126 return NaN ;
131127 }
132128
129+ static isNaN ( value ) :boolean {
130+ return isNaN ( value ) ;
131+ }
132+
133133 static isInteger ( value ) :boolean {
134134 return Number . isInteger ( value ) ;
135135 }
@@ -200,7 +200,7 @@ export function isJsObject(o):boolean {
200200 return o !== null && ( typeof o === "function" || typeof o === "object" ) ;
201201}
202202
203- export function assertionsEnabled ( ) {
203+ export function assertionsEnabled ( ) : boolean {
204204 try {
205205 var x :int = "string" ;
206206 return false ;
0 commit comments