Data source type, can be a string or AllowSharedBufferSource.
1.0.0
// String typeconst strData: DataSource = 'Hello, World!';// ArrayBuffer typeconst bufferData: DataSource = new ArrayBuffer(8);// Uint8Array typeconst u8aData: DataSource = new Uint8Array([1, 2, 3]);// SharedArrayBuffer typeconst sabData: DataSource = new SharedArrayBuffer(8); Copy
// String typeconst strData: DataSource = 'Hello, World!';// ArrayBuffer typeconst bufferData: DataSource = new ArrayBuffer(8);// Uint8Array typeconst u8aData: DataSource = new Uint8Array([1, 2, 3]);// SharedArrayBuffer typeconst sabData: DataSource = new SharedArrayBuffer(8);
Data source type, can be a string or AllowSharedBufferSource.