@@ -183,7 +183,7 @@ declare function fmod(x: f64, y: f64): f64;
183
183
/** Returns the 32-bit floating-point remainder of `x/y`. */
184
184
declare function fmodf ( x : f32 , y : f32 ) : f32 ;
185
185
/** Returns the number of parameters in the given function signature type. */
186
- declare function lengthof < T extends ( ...args : any ) => any > ( func ?: T ) : i32 ;
186
+ declare function lengthof < T extends ( ...args : any [ ] ) => any > ( func ?: T ) : i32 ;
187
187
188
188
/** Atomic operations. */
189
189
declare namespace atomic {
@@ -1356,6 +1356,7 @@ declare class String {
1356
1356
split ( separator ?: string , limit ?: i32 ) : string [ ] ;
1357
1357
toString ( ) : string ;
1358
1358
}
1359
+
1359
1360
declare namespace String {
1360
1361
/** Encoding helpers for UTF-8. */
1361
1362
export namespace UTF8 {
@@ -1381,6 +1382,32 @@ declare namespace String {
1381
1382
}
1382
1383
}
1383
1384
1385
+ declare class Object {
1386
+ /** The Object.is() method determines whether two values are the same value. */
1387
+ static is < T > ( value1 : T , value2 : T ) : bool ;
1388
+ }
1389
+
1390
+ declare class Date {
1391
+ /** Returns the UTC timestamp in milliseconds of the specified date. */
1392
+ static UTC (
1393
+ year : i32 ,
1394
+ month : i32 ,
1395
+ day : i32 ,
1396
+ hour : i32 ,
1397
+ minute : i32 ,
1398
+ second : i32 ,
1399
+ millisecond : i32
1400
+ ) : i64 ;
1401
+ /** Returns the current UTC timestamp in milliseconds. */
1402
+ static now ( ) : i64 ;
1403
+ /** Constructs a new date object from an UTC timestamp in milliseconds. */
1404
+ constructor ( value : i64 ) ;
1405
+ /** Returns the UTC timestamp of this date in milliseconds. */
1406
+ getTime ( ) : i64 ;
1407
+ /** Sets the UTC timestamp of this date in milliseconds. */
1408
+ setTime ( value : i64 ) : i64 ;
1409
+ }
1410
+
1384
1411
/** Class for representing a runtime error. Base class of all errors. */
1385
1412
declare class Error {
1386
1413
@@ -1412,12 +1439,13 @@ declare class SyntaxError extends Error { }
1412
1439
interface Boolean {
1413
1440
toString ( ) : string ;
1414
1441
}
1415
- interface Function { }
1416
- interface IArguments { }
1442
+
1417
1443
interface Number {
1418
1444
toString ( radix ?: number ) : string ;
1419
1445
}
1420
- interface Object { }
1446
+
1447
+ interface Function { }
1448
+ interface IArguments { }
1421
1449
interface RegExp { }
1422
1450
1423
1451
declare class Map < K , V > {
@@ -1581,32 +1609,6 @@ declare const Math: IMath<f64>;
1581
1609
/** Alias of {@link NativeMathf} or {@link JSMath} respectively. Defaults to `NativeMathf`. */
1582
1610
declare const Mathf : IMath < f32 > ;
1583
1611
1584
- declare class Date {
1585
- /** Returns the UTC timestamp in milliseconds of the specified date. */
1586
- static UTC (
1587
- year : i32 ,
1588
- month : i32 ,
1589
- day : i32 ,
1590
- hour : i32 ,
1591
- minute : i32 ,
1592
- second : i32 ,
1593
- millisecond : i32
1594
- ) : i64 ;
1595
- /** Returns the current UTC timestamp in milliseconds. */
1596
- static now ( ) : i64 ;
1597
- /** Constructs a new date object from an UTC timestamp in milliseconds. */
1598
- constructor ( value : i64 ) ;
1599
- /** Returns the UTC timestamp of this date in milliseconds. */
1600
- getTime ( ) : i64 ;
1601
- /** Sets the UTC timestamp of this date in milliseconds. */
1602
- setTime ( value : i64 ) : i64 ;
1603
- }
1604
-
1605
- declare class Object {
1606
- /** The Object.is() method determines whether two values are the same value. */
1607
- static is < T > ( value1 : T , value2 : T ) : bool ;
1608
- }
1609
-
1610
1612
/** Environmental tracing function for debugging purposes. */
1611
1613
declare function trace ( msg : string , n ?: i32 , a0 ?: f64 , a1 ?: f64 , a2 ?: f64 , a3 ?: f64 , a4 ?: f64 ) : void ;
1612
1614
0 commit comments