Skip to content

Commit 81ac238

Browse files
wip(doc): minor enhancements
1 parent 7ceed8a commit 81ac238

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,16 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
2828
<script>
2929
3030
const options = {
31-
3231
moduleCache: {
3332
vue: Vue
3433
},
35-
3634
async getFile(url) {
3735
3836
const res = await fetch(url);
3937
if ( !res.ok )
40-
throw Object.assign(new Error(url+' '+res.statusText), { res });
38+
throw Object.assign(new Error(res.statusText + ' ' + url), { res });
4139
return await res.text();
4240
},
43-
4441
addStyle(textContent) {
4542
4643
const style = Object.assign(document.createElement('style'), { textContent });
@@ -67,7 +64,7 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
6764

6865
### More Examples
6966

70-
see [examples](docs/examples.md)
67+
see [all examples](docs/examples.md)
7168

7269

7370
## Try It Online
@@ -77,7 +74,7 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
7774

7875
## Public API documentation
7976

80-
**[loadModule](docs/api/README.md#loadmodule)**(`path`: string, `options`: [Options](docs/api/interfaces/options.md)): Promise\<Module>
77+
**[loadModule](docs/api/README.md#loadmodule)**(`path`: string, `options`: [Options](docs/api/interfaces/options.md)): `Promise\<VueComponent>`
8178

8279

8380
## dist/

0 commit comments

Comments
 (0)