1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+ /// <reference no-default-lib="true"/>
17
+ /// <reference path="lib.es2015.symbol.d.ts" />
18
+ /// <reference path="lib.es2015.symbol.wellknown.d.ts" />
19
+
20
+ interface SharedArrayBuffer {
21
+ /**
22
+ * Read-only. The length of the ArrayBuffer (in bytes).
23
+ */
24
+ readonly byteLength : number ;
25
+
26
+ /*
27
+ * The SharedArrayBuffer constructor's length property whose value is 1.
28
+ */
29
+ length : number ;
30
+ /**
31
+ * Returns a section of an SharedArrayBuffer.
32
+ */
33
+ slice ( begin :number , end ?:number ) : SharedArrayBuffer ;
34
+ readonly [ Symbol . species ] : SharedArrayBuffer ;
35
+ readonly [ Symbol . toStringTag ] : "SharedArrayBuffer" ;
36
+ }
37
+
38
+ interface SharedArrayBufferConstructor {
39
+ readonly prototype : SharedArrayBuffer ;
40
+ new ( byteLength : number ) : SharedArrayBuffer ;
41
+ }
42
+
43
+ declare var SharedArrayBuffer : SharedArrayBufferConstructor ;
0 commit comments