resource-boilerplate icon indicating copy to clipboard operation
resource-boilerplate copied to clipboard

Can't undertsand about how imports works

Open ammartalpur opened this issue 4 years ago • 4 comments

I have learned Typescript, but when I tried to learn scripting basics by seeing your example resources, I can't understand why you imports and what I have to import.

I have a request to make a Youtube video on how to script mta sa using typescript Or make a big documentation on it.

ammartalpur avatar Sep 10 '21 15:09 ammartalpur

You can import:

  • your own exported declarations
  • types from mtasa-lua-types module

In my plans: to make a live-coding video where I will write a two resources with simple purpose

Toliak avatar Sep 10 '21 16:09 Toliak

ok waiting for your video

ammartalpur avatar Sep 10 '21 18:09 ammartalpur

Well Sorry for that. I suggest to make a tutorial on basic understanding so that we can make scripts by our self

ammartalpur avatar Sep 10 '21 18:09 ammartalpur

Basic understanding can be received from MTASA wiki and Lua coding. In general, when we are talking about typescript, I expect that you familiar with Lua

Toliak avatar Sep 20 '21 12:09 Toliak