mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
943 B
Plaintext
13 lines
943 B
Plaintext
dataViewConstructor.ts(1,14): error TS2345: Argument of type 'Uint8Array<ArrayBuffer>' is not assignable to parameter of type 'ArrayBuffer & { BYTES_PER_ELEMENT?: undefined; }'.
|
|
Type 'Uint8Array<ArrayBuffer>' is not assignable to type 'ArrayBuffer'.
|
|
Types of property '[Symbol.toStringTag]' are incompatible.
|
|
Type '"Uint8Array"' is not assignable to type '"ArrayBuffer"'.
|
|
|
|
|
|
==== dataViewConstructor.ts (1 errors) ====
|
|
new DataView(new Uint8Array(32)); // should error
|
|
~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2345: Argument of type 'Uint8Array<ArrayBuffer>' is not assignable to parameter of type 'ArrayBuffer & { BYTES_PER_ELEMENT?: undefined; }'.
|
|
!!! error TS2345: Type 'Uint8Array<ArrayBuffer>' is not assignable to type 'ArrayBuffer'.
|
|
!!! error TS2345: Types of property '[Symbol.toStringTag]' are incompatible.
|
|
!!! error TS2345: Type '"Uint8Array"' is not assignable to type '"ArrayBuffer"'. |