-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(option): add support for variadics
* feat(option): add variadic support * test(option): add tests for option * docs(option): update options docs for variadics * feat(option): add join function * docs(option): add reference for join * docs(option): add section about joining options
- Loading branch information
Showing
6 changed files
with
642 additions
and
247 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- see .lune/test.luau | ||
|
||
export type TupleFunctions = { | ||
map: (...any) -> ...any, | ||
other: () -> ...any, | ||
assertEq: (...any) -> (), | ||
assertEqMapped: (...any) -> (), | ||
assertEqOther: (...any) -> (), | ||
assertEqOtherMapped: (...any) -> (), | ||
} | ||
|
||
-- selene: allow(unused_variable) | ||
return function(f: (tuple: TupleFunctions, ...any) -> ()) | ||
return nil :: any | ||
end |
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
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.