@wshcmx/types 12.0.0 → 13.0.0

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/VERSIONING.md CHANGED
@@ -7,6 +7,3 @@
7
7
 
8
8
  ## Минорная версия
9
9
  Является обычным регулярным релизом, содержащим набор изменений, которые были накоплены с предыдущего релиза.
10
-
11
- ## Патч версия
12
- Версионирование в рамках PR
@@ -9,14 +9,12 @@
9
9
  * * {@link CallObjectMethodWithLock}()
10
10
  */
11
11
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
12
- interface Lock {
13
-
14
- }
12
+ interface Lock { }
15
13
 
16
14
  interface LockConstructor {
17
15
  new(): unknown;
18
16
  (): unknown;
19
17
  }
20
18
 
21
-
19
+
22
20
  declare const Lock: LockConstructor;
@@ -1,14 +1,11 @@
1
- /* eslint-disable @typescript-eslint/no-empty-object-type */
2
-
3
-
4
1
  /**
5
2
  * Конструктор объекта BufStream, позволяющего записывать данные в буфер в памяти как в поток.
6
3
  */
7
- interface BufStream extends Omit<Stream, "ReadLine" | "WriteBinary" | "WriteStr"> { }
4
+ type BufStream = Omit<Stream, "ReadLine" | "WriteBinary" | "WriteStr">;
8
5
 
9
6
  interface BufStreamConstructor {
10
7
  new(): BufStream;
11
8
  }
12
9
 
13
-
10
+
14
11
  declare let BufStream: BufStreamConstructor;
@@ -1,13 +1,10 @@
1
- // eslint-disable-next-line @typescript-eslint/no-empty-object-type
2
- interface Date { }
3
-
4
- interface DateConstructor {
5
- new(value?: unknown): Date;
6
- (value?: unknown): Date;
1
+ /* eslint-disable @typescript-eslint/no-misused-new */
2
+ interface Date {
3
+ new(value?: string): Date;
4
+ new(year: number, month: number, date: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
7
5
  (): Date;
8
6
  }
9
7
 
10
-
11
- declare let Date: DateConstructor;
8
+ declare let Date: Date;
12
9
  /** Текущая дата системы время системы. */
13
10
  declare let CurDate: Date;
@@ -6,6 +6,11 @@ export default tseslint.config(
6
6
  eslint.configs.recommended,
7
7
  tseslint.configs.recommended,
8
8
  {
9
+ languageOptions: {
10
+ parserOptions: {
11
+ tsconfigRootDir: import.meta.dirname
12
+ }
13
+ },
9
14
  plugins: {
10
15
  "jsdoc": jsdoc
11
16
  },
@@ -1,10 +1,9 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-object-type */
2
-
3
2
  interface Function { }
4
3
  interface FunctionConstructor { }
5
4
 
6
5
  declare interface CallableFunction extends Function { }
7
6
  declare interface NewableFunction extends Function { }
8
7
 
9
-
8
+
10
9
  declare let Function: FunctionConstructor;
@@ -29,6 +29,12 @@ interface Object {
29
29
  */
30
30
  AddProperty(key: string | number, name: unknown): void;
31
31
 
32
+ /**
33
+ * Удаляет в объект новый атрибут.
34
+ * @param {string} key - Наименование атрибута.
35
+ */
36
+ DeleteOptProperty(key: string): void;
37
+
32
38
  /**
33
39
  * Возвращает значение атрибута объекта. Если атрубут отсутствует, выдает undefined.
34
40
  * @param {string} key - Наименование атрибута объекта.
@@ -70,5 +76,5 @@ interface ObjectConstructor {
70
76
  (): Object;
71
77
  }
72
78
 
73
-
79
+
74
80
  declare const Object: ObjectConstructor;
@@ -31,6 +31,7 @@ interface Stream {
31
31
  * @param filePath - Путь к файлу (или url).
32
32
  * @returns {FileStream}
33
33
  * @example
34
+ * ```
34
35
  * fileStream = new FileStream( 'C:\\Temp\\xxx.txt' );
35
36
  * while ( true )
36
37
  * {
@@ -38,6 +39,7 @@ interface Stream {
38
39
  * if ( str == undefined )
39
40
  * break;
40
41
  * }
42
+ * ```
41
43
  */
42
44
  FileStream(filePath: string): FileStream;
43
45
  }
@@ -165,7 +165,7 @@ declare namespace tools_web {
165
165
  view_type: string;
166
166
  external_eval: string;
167
167
  check_access: boolean;
168
- open_doc : boolean;
168
+ open_doc: boolean;
169
169
  disp_array: boolean;
170
170
  array: string;
171
171
  array_selected: string;
@@ -411,7 +411,7 @@ declare namespace tools_web {
411
411
 
412
412
  function get_cur_env_url(env: unknown): unknown;
413
413
 
414
- function get_default_lng_web(user: Object): unknown;
414
+ function get_default_lng_web(user: CollaboratorDocumentTopElem | number): IUiLng["items"];
415
415
 
416
416
  function get_profiling_statistic_rec_id(): unknown;
417
417
 
package/lib/tsconfig.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES5",
4
3
  "module": "Preserve",
5
4
  "noImplicitAny": true,
6
5
  "noImplicitThis": true,
@@ -10,7 +9,6 @@
10
9
  "strict": true,
11
10
  "noLib": true,
12
11
  "noEmit": true,
13
- "baseUrl": "lib",
14
12
  "outDir": "../build"
15
13
  },
16
14
  "include": [
@@ -0,0 +1,3 @@
1
+ declare const lngs: XmlElem<{
2
+ lng: XmlMultiElem<IUiLng>;
3
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wshcmx/types",
3
- "version": "12.0.0",
3
+ "version": "13.0.0",
4
4
  "type": "module",
5
5
  "directories": {
6
6
  "lib": "lib"
@@ -11,7 +11,7 @@
11
11
  "lint:tests": "eslint -c ./tests/eslint.config.js tests",
12
12
  "tsc:lib": "tsc -p lib/tsconfig.json",
13
13
  "tsc:tests": "tsc -p tests/tsconfig.json",
14
- "prepare": "husky"
14
+ "generate:dotnet": "node dotnet/Wshcmx.Types/scripts/index.ts"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "homepage": "https://github.com/wshcmx/types#readme",
35
35
  "devDependencies": {
36
- "eslint": "^9.22.0",
37
- "eslint-plugin-jsdoc": "^50.6.6",
38
- "husky": "^9.1.7",
39
- "typescript": "^5.8.2",
40
- "typescript-eslint": "^8.26.1"
36
+ "@eslint/js": "^10.0.1",
37
+ "eslint": "^10.10.0",
38
+ "eslint-plugin-jsdoc": "^64.4.0",
39
+ "typescript": "^6.0.3",
40
+ "typescript-eslint": "^8.70.0"
41
41
  }
42
42
  }