Merge pull request #1 from jornedesmedt/main

Added @ns tsconfig.js, used in snippet + example
This commit is contained in:
Cyn 2022-01-06 15:47:51 -05:00 committed by GitHub
commit e0f16244db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"scope": "typescript",
"prefix": "template",
"body": [
"import { NS } from '../NetscriptDefinitions'",
"import { NS } from '@ns'",
"",
"export async function main(ns : NS) : Promise<void> {",
"\t//",

View File

@ -1,4 +1,4 @@
import { NS, ProcessInfo } from '../NetscriptDefinitions'
import { NS, ProcessInfo } from '@ns'
export async function main(ns: NS): Promise<void> {
const hashes: any = {}

View File

@ -1,7 +1,7 @@
{
"include": [
"NetscriptDefinitions.d.ts",
"src/**/*",
"src/**/*", "foo.ts",
],
"compilerOptions": {
@ -19,7 +19,8 @@
"baseUrl": "src/",
"paths": {
"/*.js": [ "*" ],
"*.js": [ "*" ]
"*.js": [ "*" ],
"@ns": ["../NetscriptDefinitions.d.ts"]
}
}
}