my-bitburner/.vscode/snippets.code-snippets

24 lines
528 B
Plaintext
Raw Normal View History

2021-12-24 03:21:18 +09:00
{
"ns-template": {
"scope": "typescript",
"prefix" : ["template"],
"body": [
2021-12-24 03:39:59 +09:00
"import { NS } from \"../NetscriptDefinitions\";",
2021-12-24 03:21:18 +09:00
"",
"export async function main(ns : NS) : Promise<void> {",
"\t",
"}"
]
},
"autocomplete": {
"prefix": "autocomplete",
"body": [
"// eslint-disable-next-line @typescript-eslint/no-unused-vars",
"export function autocomplete(data : ServerData, args : string[]) : string[] {",
"\treturn [...data.servers]",
"}"
],
"description": "autocomplete"
}
}