Typescript Imports

From RAGE Multiplayer Wiki
Jump to: navigation, search

Initialize Directory

Open the folder in Visual Studio Code. Setup a typescript workspace there.

tsc --init

TSConfig Info

Set this up in your TSConfig file to support correct path. Restart your client after editing.

"baseUrl": "./",

Import Syntax

At the top of your file add the following with the correct path:

import * as NameOfResource from "resource/path/of/file/from/clientside_packages/directory";