node-ts-screeps-api 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/authInfoSample.ts CHANGED
@@ -1,5 +1,20 @@
1
1
  // authInfo模板文件,在使用test的时候会用到
2
- export const userData = {
2
+ import { ApiConfig } from "./src/type";
3
+
4
+ const userData = {
3
5
  email: "notMyEmail@abc.com",
4
6
  password: "notMyPassword"
5
7
  };
8
+ export const apiConfig: ApiConfig<"signinByPassword"> = {
9
+ authInfo: {
10
+ type: "signinByPassword",
11
+ email: userData.email,
12
+ password: userData.password
13
+ },
14
+ hostInfo: {
15
+ protocol: "localhost",
16
+ port: 21025,
17
+ path: "/",
18
+ hostname: "127.0.0.1"
19
+ }
20
+ };
@@ -1,4 +1,2 @@
1
- export declare const userData: {
2
- email: string;
3
- password: string;
4
- };
1
+ import { ApiConfig } from "./src/type";
2
+ export declare const apiConfig: ApiConfig<"signinByPassword">;