Skip to content

Commit e211cc2

Browse files
committed
Changes: - Updated types to `1.0.0` beta version - Update code for types `1.0.0` - Add emoji to README
1 parent ce9a3d8 commit e211cc2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TypeScript Resource Boilerplate for MTASA
1+
# 📄 TypeScript Resource Boilerplate for MTASA
22

33
Write and compile TypeScript into MTASA-compatible Lua code.
44

@@ -17,9 +17,9 @@ A documentation in your IDE. Types safety. Linting.
1717
- 👀 [ESLint](https://eslint.org/)
1818
ESLint for linting TypeScript Code
1919

20-
# Getting started
20+
# 🎈 Getting started
2121

22-
## NodeJS
22+
## 💠 NodeJS
2323

2424
This boilerplate requires NodeJS (at least **14.x**) to be installed.
2525
If you already have NodeJS installed, skip this step.
@@ -50,7 +50,7 @@ and execute the command
5050
npm version
5151
```
5252

53-
## Create new project (initialize boilerplate)
53+
## 🆕 Create new project (initialize boilerplate)
5454

5555
Open terminal in the parent folder of your new project and run folowwing command:
5656

@@ -84,7 +84,7 @@ npm run build
8484
Always running the command to build the resource is annoying.
8585
Below there are possible solutions to simplify it.
8686

87-
# Code Editor Preparation
87+
# Code Editor Preparation
8888

8989
## VSCode
9090

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"@typescript-eslint/eslint-plugin": "^4.30.0",
1212
"@typescript-eslint/parser": "^4.30.0",
1313
"eslint": "^7.32.0",
14-
"mtasa-lua-types": "^0.6.3",
15-
"mtasa-lua-utils": "^1.0.0-beta.5",
14+
"mtasa-lua-types": "^1.0.0-beta.1",
15+
"mtasa-lua-utils": "^1.0.0-beta.6",
1616
"prettier": "^2.3.2",
1717
"typescript": "~4.3.5",
1818
"typescript-to-lua": "^1.0.0"

src/TypeScriptResource/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* File with client-side script example
33
**/
44

5-
import { EventNames } from 'mtasa-lua-types/types/mtasa/client/event/all_event_names';
6-
import { Event } from 'mtasa-lua-types/types/mtasa/client/mtasa';
7-
import { mtasa } from 'mtasa-lua-types/types/mtasa/client';
5+
import { EventNames } from 'mtasa-lua-types/client/event/all_event_names';
6+
import { Event } from 'mtasa-lua-types/client/mtasa';
7+
import { mtasa } from 'mtasa-lua-types/client';
88

99
mtasa.addEventHandler<Event.OnClientResourceStart>(
1010
EventNames.OnClientResourceStart,

src/TypeScriptResource/server.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* File with server-side script example
33
**/
44

5-
import { EventNames } from 'mtasa-lua-types/types/mtasa/server/event/all_event_names';
6-
import { Event } from 'mtasa-lua-types/types/mtasa/server/mtasa';
5+
import { EventNames } from 'mtasa-lua-types/server/event/all_event_names';
6+
import { Event } from 'mtasa-lua-types/server/mtasa';
77
import { firstLetterUpperCase } from './utils';
8-
import { mtasa } from 'mtasa-lua-types/types/mtasa/server';
8+
import { mtasa } from 'mtasa-lua-types/server';
99

1010
mtasa.addEventHandler<Event.OnPlayerJoin>(
1111
EventNames.OnPlayerJoin,

0 commit comments

Comments
 (0)