File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,16 @@ register((moonmap) => {
4545});
4646```
4747
48- If you're creating a type for the module (you should!), export the type as the default export. When adding new types to a mapping:
48+ If you're creating a type for the module (you should!), export a type named ` Exports ` as the default export. The name is required!
49+
50+ ``` ts
51+ type Exports = {
52+ /* ... */
53+ };
54+ export default Exports ;
55+ ```
56+
57+ When adding new types to a mapping:
4958
5059- Add its path and a name to ` generate.js `
5160 - Name should be the last part of the path except in cases where it breaks syntax (e.g. ` highlight.js ` -> ` HighlightJS ` )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ moonlight itself can be updated from a number of ways:
2424- The Discord crash screen
2525- The moonlight installer (or however you installed moonlight)
2626
27- Extensions can be updated from Moonbase. If you cannot access it, moonbase will attempt to let you update extensions from the crash screen itself.
27+ Extensions can be updated from Moonbase. If you cannot access it, Moonbase will attempt to let you update extensions from the crash screen itself.
2828
2929## Reset your config
3030
You can’t perform that action at this time.
0 commit comments