-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Supported Types and other cases - [x] Primitive Types: `nil`, `any`, `unknown`, `boolean`, `string`, `number`, `integer`, `function`, `thread`, `userdata` and `lightuserdata` - [x] Array: `TYPE[]` - [x] Union Type: `TYPE | TYPE | TYPE` - [x] Union of literals: `'"g@"'|'"g@$"'`, `'1'|'2'|'3'` etc. _Variants should be wrapped inside `'`_ - [x] Table: `table<KEY_TYPE, VALUE_TYPE>` - [x] Table Literal: `{ key1: VALUE_TYPE, key2: VALUE_TYPE }` - [x] Reference Type i.e., alias, class etc. - [x] Function: `fun(PARAM: TYPE): RETURN_TYPE` - [x] Optional param: `fun(PARAM?: TYPE): RETURN_TYPE` - [x] Missing Type: `fun(a)` (will fallback to `any` type) - [x] Multiple returns `fun(): string, number` - [x] Grouping: `(string|number)[]` - [x] Optional `---@param a? string` #### Not Supported - Dict `{ [string]: VALUE_TYPE }` instead use table or table literal. - Function w/ multiple returns as `VALUE_TYPE` in table literal i.e. `{ key1: func(): string, string, key2: string }` --- Resolves #27 Resolves #46 Resolves #48
- Loading branch information
Showing
11 changed files
with
648 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.