Skip to content

Commit 7dc18f7

Browse files
authored
fixing various bugs (#47)
1 parent ee71dff commit 7dc18f7

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docs/advanced/language-extensions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ foo, four = myFunc(nil)
6363

6464
## $range Iterator Function
6565

66-
Typescript's numeric for loops are less restrictive than Lua's, so they are transpiled into while loops instead. To create a Lua-style numeric for loop, you can use the `$range` language extension in a for...of loop.
66+
TypeScript's numeric for loops are less restrictive than Lua's, so they are transpiled into while loops instead. To create a Lua-style numeric for loop, you can use the `$range` language extension in a for...of loop.
6767

6868
Example:
6969

@@ -86,7 +86,7 @@ for i = 5, 1, -1 do end
8686

8787
## LuaIterable Type
8888

89-
Iterators in Lua work quite differently than in Typescript/Javscript, so a special type is needed to use them.
89+
Iterators in Lua work quite differently than in TypeScript/JavaScript, so a special type is needed to use them.
9090

9191
For example, to declare and use a Lua function that returns an iterator for a set of strings, you can do this:
9292

@@ -150,7 +150,7 @@ See the [Lua Reference Manual](https://www.lua.org/manual/5.3/manual.html#3.3.5)
150150

151151
## Operator Map Types
152152

153-
Lua supports overloading operators on types using [metatable methods](https://www.lua.org/manual/5.4/manual.html#2.4) such as `__add`. But, Javascript and Typescript do not support this. In order to use overloaded operators on types that support them, you can declare special mapping functions in TS that will translate to those operators in Lua.
153+
Lua supports overloading operators on types using [metatable methods](https://www.lua.org/manual/5.4/manual.html#2.4) such as `__add`. But, JavaScript and TypeScript do not support this. In order to use overloaded operators on types that support them, you can declare special mapping functions in TS that will translate to those operators in Lua.
154154

155155
A common example of an overloaded operator is addition of a mathematical vector type:
156156

@@ -230,7 +230,7 @@ You can also map functions to table accessors (`__index` and `__newindex`). See
230230

231231
## Lua Table Types
232232

233-
The `LuaTable` type is provided to allow direct creation and manipulation of Lua tables. This is useful if you want to use a table that uses types other than string for its keys, as that is not supported by Typescript. Calls to lua method tables are translated to simple lua:
233+
The `LuaTable` type is provided to allow direct creation and manipulation of Lua tables. This is useful if you want to use a table that uses types other than string for its keys, as that is not supported by TypeScript. Calls to lua method tables are translated to simple lua:
234234

235235
- `table.get(key)` Get a value by key -> `table[key]`
236236
- `table.set(key, value)` Set a value for key -> `table[key] = value`
@@ -370,7 +370,7 @@ There are more LuaTable functions other than `LuaTableGet` and `LuaTableSet` tha
370370

371371
## $vararg Constant
372372

373-
Lua allows use of the ellipsis operator (`...`) to access command line arguments passed when executing a script file. To access this from Typescript, you can use the `$vararg` constant in a spread expression.
373+
Lua allows use of the ellipsis operator (`...`) to access command line arguments passed when executing a script file. To access this from TypeScript, you can use the `$vararg` constant in a spread expression.
374374

375375
Example:
376376

docs/getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ The real power of this transpiler is usage together with good declarations for t
8181
- [World of Warcraft - Addon Development](https://github.com/wartoshika/wow-declarations)
8282
- [World of Warcraft Classic - Addon Development](https://github.com/wartoshika/wow-classic-declarations)
8383
- [Factorio Type Kit](https://cdaringe.github.io/factorio-type-kit/)
84+
- [The Binding of Isaac: Rebirth](https://isaacscript.github.io)

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ module.exports = {
1919
},
2020
footer: {
2121
logo: {
22-
alt: "TypescriptToLua Logo",
22+
alt: "TypeScriptToLua Logo",
2323
src: "images/logo.png",
24-
href: "https://github.com/TypescriptToLua",
24+
href: "https://github.com/TypeScriptToLua",
2525
},
2626
links: [
2727
{
@@ -64,7 +64,7 @@ module.exports = {
6464
],
6565
},
6666
],
67-
copyright: `Copyright © ${new Date().getFullYear()} TypescriptToLua Contributors`,
67+
copyright: `Copyright © ${new Date().getFullYear()} TypeScriptToLua Contributors`,
6868
},
6969
prism: {
7070
additionalLanguages: ["lua"],

0 commit comments

Comments
 (0)