Support esnext in storybook
This commit is contained in:
parent
468ca256e6
commit
19279cfebd
16 changed files with 1088 additions and 434 deletions
|
@ -1,8 +1,6 @@
|
|||
// Copyright 2018 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import is from '@sindresorhus/is';
|
||||
|
||||
import type { MIMEType } from '../types/MIME';
|
||||
|
||||
export const arrayBufferToObjectURL = ({
|
||||
|
@ -12,7 +10,7 @@ export const arrayBufferToObjectURL = ({
|
|||
data: ArrayBuffer;
|
||||
type: MIMEType;
|
||||
}): string => {
|
||||
if (!is.arrayBuffer(data)) {
|
||||
if (!(data instanceof ArrayBuffer)) {
|
||||
throw new TypeError('`data` must be an ArrayBuffer');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue