@@ -447,45 +447,47 @@ declare class DataView {
447
447
/** Constructs a new `DataView` with the given properties */
448
448
constructor ( buffer : ArrayBuffer , byteOffset ?: i32 , byteLength ?: i32 ) ;
449
449
/** The `getFloat32()` method gets a signed 32-bit float (float) at the specified byte offset from the start of the `DataView`. */
450
- getFloat32 ( byteOffset : i32 , littleEndian ?: boolean ) : f32
450
+ getFloat32 ( byteOffset : i32 , littleEndian ?: boolean ) : f32 ;
451
451
/** The `getFloat64()` method gets a signed 64-bit float (double) at the specified byte offset from the start of the `DataView`. */
452
- getFloat64 ( byteOffset : i32 , littleEndian ?: boolean ) : f64
452
+ getFloat64 ( byteOffset : i32 , littleEndian ?: boolean ) : f64 ;
453
453
/** The `getInt8()` method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the `DataView`. */
454
- getInt8 ( byteOffset : i32 ) : i8
454
+ getInt8 ( byteOffset : i32 ) : i8 ;
455
455
/** The `getInt16()` method gets a signed 16-bit integer (short) at the specified byte offset from the start of the `DataView`. */
456
- getInt16 ( byteOffset : i32 , littleEndian ?: boolean ) : i16
456
+ getInt16 ( byteOffset : i32 , littleEndian ?: boolean ) : i16 ;
457
457
/** The `getInt32()` method gets a signed 32-bit integer (long) at the specified byte offset from the start of the `DataView`. */
458
- getInt32 ( byteOffset : i32 , littleEndian ?: boolean ) : i32
458
+ getInt32 ( byteOffset : i32 , littleEndian ?: boolean ) : i32 ;
459
459
/** The `getInt64()` method gets a signed 64-bit integer (long long) at the specified byte offset from the start of the `DataView`. */
460
- getInt64 ( byteOffset : i32 , littleEndian ?: boolean ) : i64
460
+ getInt64 ( byteOffset : i32 , littleEndian ?: boolean ) : i64 ;
461
461
/** The `getUint8()` method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the `DataView`. */
462
- getUint8 ( byteOffset : i32 ) : u8
462
+ getUint8 ( byteOffset : i32 ) : u8 ;
463
463
/** The `getUint16()` method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the `DataView`. */
464
- getUint16 ( byteOffset : i32 , littleEndian ?: boolean ) : u16
464
+ getUint16 ( byteOffset : i32 , littleEndian ?: boolean ) : u16 ;
465
465
/** The `getUint32()` method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the `DataView`. */
466
- getUint32 ( byteOffset : i32 , littleEndian ?: boolean ) : u32
466
+ getUint32 ( byteOffset : i32 , littleEndian ?: boolean ) : u32 ;
467
467
/** The `getUint64()` method gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the `DataView`. */
468
- getUint64 ( byteOffset : i32 , littleEndian ?: boolean ) : u64
468
+ getUint64 ( byteOffset : i32 , littleEndian ?: boolean ) : u64 ;
469
469
/** The `setFloat32()` method stores a signed 32-bit float (float) value at the specified byte offset from the start of the `DataView`. */
470
- setFloat32 ( byteOffset : i32 , value : f32 , littleEndian ?: boolean ) : void
470
+ setFloat32 ( byteOffset : i32 , value : f32 , littleEndian ?: boolean ) : void ;
471
471
/** The `setFloat64()` method stores a signed 64-bit float (double) value at the specified byte offset from the start of the `DataView`. */
472
- setFloat64 ( byteOffset : i32 , value : f64 , littleEndian ?: boolean ) : void
472
+ setFloat64 ( byteOffset : i32 , value : f64 , littleEndian ?: boolean ) : void ;
473
473
/** The `setInt8()` method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the `DataView`. */
474
- setInt8 ( byteOffset : i32 , value : i8 ) : void
474
+ setInt8 ( byteOffset : i32 , value : i8 ) : void ;
475
475
/** The `setInt16()` method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the `DataView`. */
476
- setInt16 ( byteOffset : i32 , value : i16 , littleEndian ?: boolean ) : void
476
+ setInt16 ( byteOffset : i32 , value : i16 , littleEndian ?: boolean ) : void ;
477
477
/** The `setInt32()` method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the `DataView`. */
478
- setInt32 ( byteOffset : i32 , value : i32 , littleEndian ?: boolean ) : void
478
+ setInt32 ( byteOffset : i32 , value : i32 , littleEndian ?: boolean ) : void ;
479
479
/** The `setInt64()` method stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the `DataView`. */
480
- setInt64 ( byteOffset : i32 , value : i64 , littleEndian ?: boolean ) : void
480
+ setInt64 ( byteOffset : i32 , value : i64 , littleEndian ?: boolean ) : void ;
481
481
/** The `setUint8()` method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the `DataView`. */
482
- setUint8 ( byteOffset : i32 , value : u8 ) : void
482
+ setUint8 ( byteOffset : i32 , value : u8 ) : void ;
483
483
/** The `setUint16()` method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the `DataView`. */
484
- setUint16 ( byteOffset : i32 , value : u16 , littleEndian ?: boolean ) : void
484
+ setUint16 ( byteOffset : i32 , value : u16 , littleEndian ?: boolean ) : void ;
485
485
/** The `setUint32()` method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the `DataView`. */
486
- setUint32 ( byteOffset : i32 , value : u32 , littleEndian ?: boolean ) : void
486
+ setUint32 ( byteOffset : i32 , value : u32 , littleEndian ?: boolean ) : void ;
487
487
/** The `setUint64()` method stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the `DataView`. */
488
- setUint64 ( byteOffset : i32 , value : u64 , littleEndian ?: boolean ) : void
488
+ setUint64 ( byteOffset : i32 , value : u64 , littleEndian ?: boolean ) : void ;
489
+ /** Returns a string representation of DataView. */
490
+ toString ( ) : string ;
489
491
}
490
492
491
493
/** Interface for a typed view on an array buffer. */
@@ -621,15 +623,24 @@ declare class Error {
621
623
message : string ;
622
624
623
625
/** Stack trace. */
624
- stack : string ;
626
+ stack ? : string ;
625
627
626
628
/** Constructs a new error, optionally with a message. */
627
629
constructor ( message ?: string ) ;
630
+
631
+ /** Method returns a string representing the specified Error class. */
632
+ toString ( ) : string ;
628
633
}
629
634
630
635
/** Class for indicating an error when a value is not in the set or range of allowed values. */
631
636
declare class RangeError extends Error { }
632
637
638
+ /** Class for indicating an error when a value is not of the expected type. */
639
+ declare class TypeError extends Error { }
640
+
641
+ /** Class for indicating an error when trying to interpret syntactically invalid code. */
642
+ declare class SyntaxError extends Error { }
643
+
633
644
interface Boolean { }
634
645
interface Function { }
635
646
interface IArguments { }
@@ -644,6 +655,7 @@ declare class Map<K,V> {
644
655
get ( key : K ) : V ;
645
656
delete ( key : K ) : bool ;
646
657
clear ( ) : void ;
658
+ toString ( ) : string ;
647
659
}
648
660
649
661
declare class Set < T > {
@@ -652,13 +664,27 @@ declare class Set<T> {
652
664
add ( value : T ) : void ;
653
665
delete ( value : T ) : bool ;
654
666
clear ( ) : void ;
667
+ toString ( ) : string ;
655
668
}
656
669
657
670
interface SymbolConstructor {
671
+ readonly hasInstance : symbol ;
672
+ readonly isConcatSpreadable : symbol ;
673
+ readonly isRegExp : symbol ;
674
+ readonly iterator : symbol ;
675
+ readonly match : symbol ;
676
+ readonly replace : symbol ;
677
+ readonly search : symbol ;
678
+ readonly species : symbol ;
679
+ readonly split : symbol ;
680
+ readonly toPrimitive : symbol ;
681
+ readonly toStringTag : symbol ;
682
+ readonly unscopables : symbol ;
658
683
( description ?: string | null ) : symbol ;
659
684
for ( key : string ) : symbol ;
660
685
keyFor ( sym : symbol ) : string | null ;
661
686
}
687
+
662
688
declare const Symbol : SymbolConstructor ;
663
689
664
690
interface IMath < T > {
0 commit comments