We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b7c97 commit 58c65d3Copy full SHA for 58c65d3
src/fileAttachment.js
@@ -49,7 +49,7 @@ export function NoFileAttachments(name) {
49
50
export default function FileAttachments(resolve) {
51
return name => {
52
- const url = resolve(name += ""); // Returns a Promise, or null.
+ const url = resolve(name += ""); // Returns a Promise, string, or null.
53
if (url == null) throw new Error(`File not found: ${name}`);
54
return new FileAttachment(url, name);
55
};
0 commit comments