Initial commit

main
kascheml 2 years ago
commit 1c77d64f6b

1
.gitignore vendored

@ -0,0 +1 @@
/node_modules/

37
console.d.ts vendored

@ -0,0 +1,37 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;

2
index.d.ts vendored

@ -0,0 +1,2 @@
import "./console"
import "screeps"

29
package-lock.json generated

@ -0,0 +1,29 @@
{
"name": "@kascheml/screeps-types",
"version": "0.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@kascheml/screeps-types",
"version": "0.0.1",
"license": "Apache-2.0",
"dependencies": {
"@types/screeps": "^3.3.0"
}
},
"node_modules/@types/screeps": {
"version": "3.3.0",
"resolved": "https://npm.kascheml.de/@types%2fscreeps/-/screeps-3.3.0.tgz",
"integrity": "sha512-1Fw/U0V0INPS4rS+SpjRi3zswf5cxgwTdNVN0UksWAkuVidS/4NCCx0LHZqvOByx6kP8J+7O9z3SMzK5prz5cA==",
"license": "MIT"
}
},
"dependencies": {
"@types/screeps": {
"version": "3.3.0",
"resolved": "https://npm.kascheml.de/@types%2fscreeps/-/screeps-3.3.0.tgz",
"integrity": "sha512-1Fw/U0V0INPS4rS+SpjRi3zswf5cxgwTdNVN0UksWAkuVidS/4NCCx0LHZqvOByx6kP8J+7O9z3SMzK5prz5cA=="
}
}
}

@ -0,0 +1,11 @@
{
"name": "@kascheml/screeps-types",
"version": "0.0.2",
"description": "TypeScript typings for Screeps",
"author": "Kascheml",
"license": "Apache-2.0",
"repository": "https://ihgit.de/screeps/screeps-types.git",
"dependencies": {
"@types/screeps": "^3.3.0"
}
}
Loading…
Cancel
Save