Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
Update README to include multiple defs option
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Apr 8, 2022
1 parent 92da4f7 commit f0d9081
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ Further options:
- `--dump-source-map`: dumps a map of registered files that the tool has picked up. Useful for debugging
- `--exclude-virtual-path`: don't include the virtual path in the output. Useful when a machine needs to read the output

Note that `--defs` supports being listed multiple times, to handle multiple different definition files:

```sh
luau-analyze --defs=globalTypes.d.lua --defs=extraTypes.d.lua fileToAnalyse.luau
```

## Registering global types

You can create a definition file to register as global types.
Expand Down

0 comments on commit f0d9081

Please sign in to comment.