Commit ac3d176
authored
fix: add optional type for file candidate data (#340)
Where we know the type of content to be imported ahead of time
(e.g. a Uint8Array or a stream, not both), it can be helpful to
specify that type, so make `FileCandidate` generic to allow this.
Defaults it to the previous `ImportContent` value so this is
non-breaking.1 parent df6aea8 commit ac3d176
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments