@@ -447,45 +447,47 @@ declare class DataView {
447447 /** Constructs a new `DataView` with the given properties */
448448 constructor ( buffer : ArrayBuffer , byteOffset ?: i32 , byteLength ?: i32 ) ;
449449 /** 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 ;
451451 /** 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 ;
453453 /** 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 ;
455455 /** 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 ;
457457 /** 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 ;
459459 /** 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 ;
461461 /** 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 ;
463463 /** 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 ;
465465 /** 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 ;
467467 /** 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 ;
469469 /** 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 ;
471471 /** 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 ;
473473 /** 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 ;
475475 /** 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 ;
477477 /** 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 ;
479479 /** 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 ;
481481 /** 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 ;
483483 /** 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 ;
485485 /** 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 ;
487487 /** 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 ;
489491}
490492
491493/** Interface for a typed view on an array buffer. */
@@ -621,15 +623,24 @@ declare class Error {
621623 message : string ;
622624
623625 /** Stack trace. */
624- stack : string ;
626+ stack ? : string ;
625627
626628 /** Constructs a new error, optionally with a message. */
627629 constructor ( message ?: string ) ;
630+
631+ /** Method returns a string representing the specified Error class. */
632+ toString ( ) : string ;
628633}
629634
630635/** Class for indicating an error when a value is not in the set or range of allowed values. */
631636declare class RangeError extends Error { }
632637
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+
633644interface Boolean { }
634645interface Function { }
635646interface IArguments { }
@@ -644,6 +655,7 @@ declare class Map<K,V> {
644655 get ( key : K ) : V ;
645656 delete ( key : K ) : bool ;
646657 clear ( ) : void ;
658+ toString ( ) : string ;
647659}
648660
649661declare class Set < T > {
@@ -652,13 +664,27 @@ declare class Set<T> {
652664 add ( value : T ) : void ;
653665 delete ( value : T ) : bool ;
654666 clear ( ) : void ;
667+ toString ( ) : string ;
655668}
656669
657670interface 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 ;
658683 ( description ?: string | null ) : symbol ;
659684 for ( key : string ) : symbol ;
660685 keyFor ( sym : symbol ) : string | null ;
661686}
687+
662688declare const Symbol : SymbolConstructor ;
663689
664690interface IMath < T > {
0 commit comments