Skip to content

Commit 26e664d

Browse files
committed
refactor: type fixes
1 parent 136cfd7 commit 26e664d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/scratchFetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const applyMetadata = options => {
8080
*/
8181
const scratchFetch = (resource, options) => {
8282
const augmentedOptions = applyMetadata(options);
83-
return crossFetch(resource, augmentedOptions);
83+
return crossFetch.fetch(resource, augmentedOptions);
8484
};
8585

8686
/**

src/types.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
declare module '*.png?arrayBuffer';
2-
declare module '*.wav?arrayBuffer';
3-
declare module '*.svg?arrayBuffer';
1+
declare module '*?arrayBuffer' {
2+
const value: ArrayBuffer;
3+
export default value;
4+
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Modules */
1010
"module": "Preserve",
11-
"types": ["./src/types.d.ts"],
1211

1312
/* Emit */
1413
"declaration": true,

0 commit comments

Comments
 (0)