Merge pull request #1 from jornedesmedt/main
Added @ns tsconfig.js, used in snippet + example
This commit is contained in:
commit
e0f16244db
2
.vscode/snippets.code-snippets
vendored
2
.vscode/snippets.code-snippets
vendored
@ -3,7 +3,7 @@
|
|||||||
"scope": "typescript",
|
"scope": "typescript",
|
||||||
"prefix": "template",
|
"prefix": "template",
|
||||||
"body": [
|
"body": [
|
||||||
"import { NS } from '../NetscriptDefinitions'",
|
"import { NS } from '@ns'",
|
||||||
"",
|
"",
|
||||||
"export async function main(ns : NS) : Promise<void> {",
|
"export async function main(ns : NS) : Promise<void> {",
|
||||||
"\t//",
|
"\t//",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { NS, ProcessInfo } from '../NetscriptDefinitions'
|
import { NS, ProcessInfo } from '@ns'
|
||||||
|
|
||||||
export async function main(ns: NS): Promise<void> {
|
export async function main(ns: NS): Promise<void> {
|
||||||
const hashes: any = {}
|
const hashes: any = {}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"include": [
|
"include": [
|
||||||
"NetscriptDefinitions.d.ts",
|
"NetscriptDefinitions.d.ts",
|
||||||
"src/**/*",
|
"src/**/*", "foo.ts",
|
||||||
],
|
],
|
||||||
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
@ -19,7 +19,8 @@
|
|||||||
"baseUrl": "src/",
|
"baseUrl": "src/",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/*.js": [ "*" ],
|
"/*.js": [ "*" ],
|
||||||
"*.js": [ "*" ]
|
"*.js": [ "*" ],
|
||||||
|
"@ns": ["../NetscriptDefinitions.d.ts"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user