You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be221d3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/advanced/writing-declarations.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,14 +174,13 @@ Here are some commonly used TSDoc tags used in comments:
174
174
175
175
TypeScriptToLua takes this further. Some "tags" change how the transpiler translates certain pieces of code. These are referred to as [annotations](advanced/compiler-annotations.md).
176
176
177
-
As an example, `@tupleReturn` marks a function as something which returns multiple values instead of its array.
177
+
As an example, the `LuaMultiReturn` type marks a function as something which returns multiple values instead of its array.
See [Compiler Annotations](advanced/compiler-annotations.md)page for more information.
199
+
See [Language Extensions](advanced/language-extensions.md#luamultireturn-type) and [Compiler Annotations](advanced/compiler-annotations.md)pages for more information.
201
200
202
201
## Environmental Declarations
203
202
@@ -249,8 +248,7 @@ assert();
249
248
250
249
```ts title=image.d.ts
251
250
interfaceImage {
252
-
/**@tupleReturn*/
253
-
getDimensions(): [number, number];
251
+
getDimensions():LuaMultiReturn<[number, number]>;
254
252
}
255
253
256
254
// This interface merges with its previous declaration
0 commit comments