Skip to content

Commit

Permalink
dataURItoFile to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
arturi committed Sep 27, 2023
1 parent f95df25 commit 3996dc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions packages/@uppy/utils/src/dataURItoFile.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/@uppy/utils/src/dataURItoFile.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import dataURItoFile from './dataURItoFile.js'
import dataURItoFile from './dataURItoFile.ts'
import sampleImageDataURI from './sampleImageDataURI.js'

describe('dataURItoFile', () => {
Expand Down
5 changes: 5 additions & 0 deletions packages/@uppy/utils/src/dataURItoFile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import dataURItoBlob from './dataURItoBlob.ts'

export default function dataURItoFile (dataURI: string, opts: { mimeType?: string; name?: string }): File | Blob {
return dataURItoBlob(dataURI, opts, true)
}

0 comments on commit 3996dc7

Please sign in to comment.