Skip to content

Commit ea0c26c

Browse files
committed
Improve API docs
1 parent 72d017b commit ea0c26c

File tree

1 file changed

+7
-2
lines changed
  • src/content/docs/ext-dev

1 file changed

+7
-2
lines changed

src/content/docs/ext-dev/api.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ sidebar:
99

1010
The global types are available [here](https://github.com/moonlight-mod/moonlight/blob/main/packages/types/src/globals.ts). Read the comments for more information. What globals you can use depends on [the current environment](/ext-dev/cookbook#extension-entrypoints):
1111

12-
- `moonlight`: available in the web environment
12+
- `moonlight`: available in the web environment (`index.ts`, Webpack modules)
13+
- Contains patching and Webpack module information, the API level, localStorage, LunAST, moonmap
1314
- `moonlightNode`: available in the web *and* Node.js environments
14-
- `moonlightHost`: available in the host environment
15+
- Contains configuration details, browser checks
16+
- `moonlightNodeSandboxed`: available in the Node.js environments (`node.ts`)
17+
- Contains filesystem APIs
18+
- `moonlightHost`: available in the host environment (`host.ts`)
19+
- Contains configuration details, `.asar` path
1520

1621
## Extension libraries
1722

0 commit comments

Comments
 (0)