@@ -592,45 +592,47 @@ declare class DataView {
592
592
/** Constructs a new `DataView` with the given properties */
593
593
constructor ( buffer : ArrayBuffer , byteOffset ?: i32 , byteLength ?: i32 ) ;
594
594
/** The `getFloat32()` method gets a signed 32-bit float (float) at the specified byte offset from the start of the `DataView`. */
595
- getFloat32 ( byteOffset : i32 , littleEndian ?: boolean ) : f32
595
+ getFloat32 ( byteOffset : i32 , littleEndian ?: boolean ) : f32 ;
596
596
/** The `getFloat64()` method gets a signed 64-bit float (double) at the specified byte offset from the start of the `DataView`. */
597
- getFloat64 ( byteOffset : i32 , littleEndian ?: boolean ) : f64
597
+ getFloat64 ( byteOffset : i32 , littleEndian ?: boolean ) : f64 ;
598
598
/** The `getInt8()` method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the `DataView`. */
599
- getInt8 ( byteOffset : i32 ) : i8
599
+ getInt8 ( byteOffset : i32 ) : i8 ;
600
600
/** The `getInt16()` method gets a signed 16-bit integer (short) at the specified byte offset from the start of the `DataView`. */
601
- getInt16 ( byteOffset : i32 , littleEndian ?: boolean ) : i16
601
+ getInt16 ( byteOffset : i32 , littleEndian ?: boolean ) : i16 ;
602
602
/** The `getInt32()` method gets a signed 32-bit integer (long) at the specified byte offset from the start of the `DataView`. */
603
- getInt32 ( byteOffset : i32 , littleEndian ?: boolean ) : i32
603
+ getInt32 ( byteOffset : i32 , littleEndian ?: boolean ) : i32 ;
604
604
/** The `getInt64()` method gets a signed 64-bit integer (long long) at the specified byte offset from the start of the `DataView`. */
605
- getInt64 ( byteOffset : i32 , littleEndian ?: boolean ) : i64
605
+ getInt64 ( byteOffset : i32 , littleEndian ?: boolean ) : i64 ;
606
606
/** The `getUint8()` method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the `DataView`. */
607
- getUint8 ( byteOffset : i32 ) : u8
607
+ getUint8 ( byteOffset : i32 ) : u8 ;
608
608
/** The `getUint16()` method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the `DataView`. */
609
- getUint16 ( byteOffset : i32 , littleEndian ?: boolean ) : u16
609
+ getUint16 ( byteOffset : i32 , littleEndian ?: boolean ) : u16 ;
610
610
/** The `getUint32()` method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the `DataView`. */
611
- getUint32 ( byteOffset : i32 , littleEndian ?: boolean ) : u32
611
+ getUint32 ( byteOffset : i32 , littleEndian ?: boolean ) : u32 ;
612
612
/** The `getUint64()` method gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the `DataView`. */
613
- getUint64 ( byteOffset : i32 , littleEndian ?: boolean ) : u64
613
+ getUint64 ( byteOffset : i32 , littleEndian ?: boolean ) : u64 ;
614
614
/** The `setFloat32()` method stores a signed 32-bit float (float) value at the specified byte offset from the start of the `DataView`. */
615
- setFloat32 ( byteOffset : i32 , value : f32 , littleEndian ?: boolean ) : void
615
+ setFloat32 ( byteOffset : i32 , value : f32 , littleEndian ?: boolean ) : void ;
616
616
/** The `setFloat64()` method stores a signed 64-bit float (double) value at the specified byte offset from the start of the `DataView`. */
617
- setFloat64 ( byteOffset : i32 , value : f64 , littleEndian ?: boolean ) : void
617
+ setFloat64 ( byteOffset : i32 , value : f64 , littleEndian ?: boolean ) : void ;
618
618
/** The `setInt8()` method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the `DataView`. */
619
- setInt8 ( byteOffset : i32 , value : i8 ) : void
619
+ setInt8 ( byteOffset : i32 , value : i8 ) : void ;
620
620
/** The `setInt16()` method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the `DataView`. */
621
- setInt16 ( byteOffset : i32 , value : i16 , littleEndian ?: boolean ) : void
621
+ setInt16 ( byteOffset : i32 , value : i16 , littleEndian ?: boolean ) : void ;
622
622
/** The `setInt32()` method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the `DataView`. */
623
- setInt32 ( byteOffset : i32 , value : i32 , littleEndian ?: boolean ) : void
623
+ setInt32 ( byteOffset : i32 , value : i32 , littleEndian ?: boolean ) : void ;
624
624
/** The `setInt64()` method stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the `DataView`. */
625
- setInt64 ( byteOffset : i32 , value : i64 , littleEndian ?: boolean ) : void
625
+ setInt64 ( byteOffset : i32 , value : i64 , littleEndian ?: boolean ) : void ;
626
626
/** The `setUint8()` method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the `DataView`. */
627
- setUint8 ( byteOffset : i32 , value : u8 ) : void
627
+ setUint8 ( byteOffset : i32 , value : u8 ) : void ;
628
628
/** The `setUint16()` method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the `DataView`. */
629
- setUint16 ( byteOffset : i32 , value : u16 , littleEndian ?: boolean ) : void
629
+ setUint16 ( byteOffset : i32 , value : u16 , littleEndian ?: boolean ) : void ;
630
630
/** The `setUint32()` method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the `DataView`. */
631
- setUint32 ( byteOffset : i32 , value : u32 , littleEndian ?: boolean ) : void
631
+ setUint32 ( byteOffset : i32 , value : u32 , littleEndian ?: boolean ) : void ;
632
632
/** The `setUint64()` method stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the `DataView`. */
633
- setUint64 ( byteOffset : i32 , value : u64 , littleEndian ?: boolean ) : void
633
+ setUint64 ( byteOffset : i32 , value : u64 , littleEndian ?: boolean ) : void ;
634
+ /** Returns a string representation of DataView. */
635
+ toString ( ) : string ;
634
636
}
635
637
636
638
/** Interface for a typed view on an array buffer. */
@@ -767,15 +769,24 @@ declare class Error {
767
769
message : string ;
768
770
769
771
/** Stack trace. */
770
- stack : string ;
772
+ stack ? : string ;
771
773
772
774
/** Constructs a new error, optionally with a message. */
773
775
constructor ( message ?: string ) ;
776
+
777
+ /** Method returns a string representing the specified Error class. */
778
+ toString ( ) : string ;
774
779
}
775
780
776
781
/** Class for indicating an error when a value is not in the set or range of allowed values. */
777
782
declare class RangeError extends Error { }
778
783
784
+ /** Class for indicating an error when a value is not of the expected type. */
785
+ declare class TypeError extends Error { }
786
+
787
+ /** Class for indicating an error when trying to interpret syntactically invalid code. */
788
+ declare class SyntaxError extends Error { }
789
+
779
790
interface Boolean { }
780
791
interface Function { }
781
792
interface IArguments { }
@@ -790,6 +801,7 @@ declare class Map<K,V> {
790
801
get ( key : K ) : V ;
791
802
delete ( key : K ) : bool ;
792
803
clear ( ) : void ;
804
+ toString ( ) : string ;
793
805
}
794
806
795
807
declare class Set < T > {
@@ -798,13 +810,27 @@ declare class Set<T> {
798
810
add ( value : T ) : void ;
799
811
delete ( value : T ) : bool ;
800
812
clear ( ) : void ;
813
+ toString ( ) : string ;
801
814
}
802
815
803
816
interface SymbolConstructor {
817
+ readonly hasInstance : symbol ;
818
+ readonly isConcatSpreadable : symbol ;
819
+ readonly isRegExp : symbol ;
820
+ readonly iterator : symbol ;
821
+ readonly match : symbol ;
822
+ readonly replace : symbol ;
823
+ readonly search : symbol ;
824
+ readonly species : symbol ;
825
+ readonly split : symbol ;
826
+ readonly toPrimitive : symbol ;
827
+ readonly toStringTag : symbol ;
828
+ readonly unscopables : symbol ;
804
829
( description ?: string | null ) : symbol ;
805
830
for ( key : string ) : symbol ;
806
831
keyFor ( sym : symbol ) : string | null ;
807
832
}
833
+
808
834
declare const Symbol : SymbolConstructor ;
809
835
810
836
interface IMath < T > {
0 commit comments