summaryrefslogtreecommitdiff
path: root/core/internal.d.ts
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-01-29 23:15:01 +0900
committerGitHub <noreply@github.com>2023-01-29 15:15:01 +0100
commit266915d5ce354fde12b20f8f5ceb5ffdfacb7983 (patch)
tree8787d5b36ede178cd691492c5fdaab6b686b9f5f /core/internal.d.ts
parent04ba709b6ec994fd084e0d09ff9edc9df3a1eefc (diff)
fix(ext): internal `structuredClone` for `ArrayBuffer` and `TypedArray` subclasses (#17431)
Diffstat (limited to 'core/internal.d.ts')
-rw-r--r--core/internal.d.ts23
1 files changed, 22 insertions, 1 deletions
diff --git a/core/internal.d.ts b/core/internal.d.ts
index efe6ed8a8..004e068ff 100644
--- a/core/internal.d.ts
+++ b/core/internal.d.ts
@@ -255,8 +255,11 @@ declare namespace __bootstrap {
export const ArrayBuffer: typeof globalThis.ArrayBuffer;
export const ArrayBufferLength: typeof ArrayBuffer.length;
export const ArrayBufferName: typeof ArrayBuffer.name;
- export const ArrayBufferPrototype: typeof ArrayBuffer.prototype;
export const ArrayBufferIsView: typeof ArrayBuffer.isView;
+ export const ArrayBufferPrototype: typeof ArrayBuffer.prototype;
+ export const ArrayBufferPrototypeGetByteLength: (
+ buffer: ArrayBuffer,
+ ) => number;
export const ArrayBufferPrototypeSlice: UncurryThis<
typeof ArrayBuffer.prototype.slice
>;
@@ -301,6 +304,11 @@ declare namespace __bootstrap {
export const DataViewLength: typeof DataView.length;
export const DataViewName: typeof DataView.name;
export const DataViewPrototype: typeof DataView.prototype;
+ export const DataViewPrototypeGetBuffer: (
+ view: DataView,
+ ) => ArrayBuffer | SharedArrayBuffer;
+ export const DataViewPrototypeGetByteLength: (view: DataView) => number;
+ export const DataViewPrototypeGetByteOffset: (view: DataView) => number;
export const DataViewPrototypeGetInt8: UncurryThis<
typeof DataView.prototype.getInt8
>;
@@ -979,6 +987,19 @@ declare namespace __bootstrap {
constructor: Uint8ArrayConstructor,
arrayLike: ArrayLike<number>,
) => Uint8Array;
+ export const TypedArrayPrototypeGetBuffer: (
+ array: Uint8Array,
+ ) => ArrayBuffer | SharedArrayBuffer;
+ export const TypedArrayPrototypeGetByteLength: (
+ array: Uint8Array,
+ ) => number;
+ export const TypedArrayPrototypeGetByteOffset: (
+ array: Uint8Array,
+ ) => number;
+ export const TypedArrayPrototypeGetLength: (array: Uint8Array) => number;
+ export const TypedArrayPrototypeGetSymbolToStringTag: (
+ v: unknown,
+ ) => string | undefined;
export const TypedArrayPrototypeCopyWithin: UncurryThis<
typeof Uint8Array.prototype.copyWithin
>;