Skip to content

Commit 538d4c6

Browse files
committed
update changelog
1 parent 6a84d6f commit 538d4c6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
# 0.8.0 (unreleased)
44

5+
`NEW` Implement `std.Unpack` type for better type inference of the `unpack` function, and `std.Rawget` type for better type inference of the `rawget` function
6+
7+
`NEW` Support `generator` implementation similar to `luals`
8+
9+
`FIX` Fix issue where type narrowing is lost in nested closures
10+
11+
`NEW` Improved generic parameter inference for lambda functions, now better inferring parameter types for lambda functions
12+
13+
`CHG` Changed `math.huge` to number type
14+
15+
`FIX` Optimized inference of variadic generic return values, now usable for asynchronous library return value inference:
16+
```lua
17+
--- @generic T, R
18+
--- @param argc integer
19+
--- @param func fun(...:T..., cb: fun(...:R...))
20+
--- @return async fun(...:T...):R...
21+
local function wrap(argc, func) end
22+
23+
--- @param a string
24+
--- @param b string
25+
--- @param callback fun(out: string)
26+
local function system(a, b, callback) end
27+
28+
local wrapped = wrap(3, system)
29+
```
30+
31+
`FIX` Optimized rendering of certain type hints
32+
33+
`NEW` Added documentation hints for modules and types in code completion
34+
35+
`NEW` Added type checking for intersection types
36+
37+
`NEW` Support for generic constraint checking, string template parameter type checking and code completion
38+
39+
540
# 0.7.3
641

742
`FIX` Fix a crash issue

0 commit comments

Comments
 (0)