Skip to content

Commit 36e2a4e

Browse files
authored
Merge pull request #509 from Shopify/fix/require-type
Fix DataSource type
2 parents 51c85c6 + b767802 commit 36e2a4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package/src/skia/types/Data/Data.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ import type { SkJSIInstance } from "../JsiInstance";
22

33
export type Data = SkJSIInstance<"Data">;
44

5-
type Require = number;
6-
export type DataSource = Require | string | Uint8Array;
5+
export type DataSource = ReturnType<typeof require> | string | Uint8Array;

0 commit comments

Comments
 (0)