---
title: BufferSource
slug: Web/API/BufferSource
tags:
  - API
  - Interface
  - JavaScript
  - Reference
  - Typed Arrays
---
{{APIRef}}

**`BufferSource`** is a typedef used to represent objects that are either themselves an {{jsxref("ArrayBuffer")}}, or which are a {{jsxref("TypedArray")}} providing an {{domxref("ArrayBufferView")}}.

This is a helper type to simplify the specification. It isn't an interface and there are no objects implementing it.

## Specifications

| Specification                                                                        | Status                   | Comment             |
| ------------------------------------------------------------------------------------ | ------------------------ | ------------------- |
| {{SpecName('WebIDL', "#common-BufferSource", "BufferSource")}} | {{Spec2('WebIDL')}} | Initial definition. |
