isaacscript-common 87.8.1 → 87.8.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/functions/decorators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;;;GAMG;AAGH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,WAAW,EAAE,CAAC,EACd,GAAG,YAAY,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IA0C9C,EAAE,8CACA,UAAU,eACL,MAAM,+CAElB,IAAI,CAvCR;AAED;;;;;;GAMG;AAGH,wBAAgB,cAAc,CAAC,CAAC,SAAS,iBAAiB,EACxD,iBAAiB,EAAE,CAAC,EACpB,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,IAsEpD,EAAE,oDACA,UAAU,eACL,MAAM,+CAElB,IAAI,CAnER;AAED;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EACpD,WAAW,EAAE,CAAC,EACd,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,YAAY,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAE9C,EAAE,SAAS,qBAAqB,CAA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AiB,EAAE,CAAC,EACpB,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,IAsEpD,EAAE,oDACA,UAAU,eACL,MAAM,+CAElB,IAAI,CAnER;AAED;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EACpD,WAAW,EAAE,CAAC,EACd,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,YAAY,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAE9C,EAAE,SAAS,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5C,QAAQ,UAAU,EAClB,aAAa,MAAM,EACnB,aAAa,uBAAuB,CAAC,EAAE,CAAC,KACvC,IAAI,CA6BR;AAED;;;;;;GAMG;AAEH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,iBAAiB,EAChE,iBAAiB,EAAE,CAAC,EACpB,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,IAEpD,EAAE,SAAS,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAClD,QAAQ,UAAU,EAClB,aAAa,MAAM,EACnB,aAAa,uBAAuB,CAAC,EAAE,CAAC,KACvC,IAAI,CA4BR"}
@@ -1,25 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * If you decide to structure your mod as a set of feature classes, you can use decorators to
4
- * automatically register callbacks.
5
- *
6
- * Currently, there are two decorators:
7
- * - `@Callback`
8
- * - `@CallbackCustom`
9
- *
10
- * For example:
11
- *
12
- * ```ts
13
- * export class MyFeature extends ModFeature {
14
- * @Callback(ModCallback.POST_GAME_STARTED)
15
- * postGameStarted(isContinued: boolean): void {
16
- * Isaac.DebugString(`Callback fired: POST_GAME_STARTED`);
17
- * }
18
- * }
19
- * ```
20
- *
21
- * @module
22
- */
2
+ /* eslint-disable jsdoc/escape-inline-tags */
23
3
  Object.defineProperty(exports, "__esModule", { value: true });
24
4
  exports.Callback = Callback;
25
5
  exports.CallbackCustom = CallbackCustom;
@@ -62,10 +62,10 @@ export declare function getObjectPartialMatch<T>(searchText: string, object: Rea
62
62
  * const array = ["foo", "bar"];
63
63
  * const searchText = "f";
64
64
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
65
- *
66
- * @returns If a match was found, returns the array element. If a match was not
67
- * found, returns undefined.
68
65
  * ```
66
+ *
67
+ * @returns If a match was found, returns the array element. If a match was not found, returns
68
+ * undefined.
69
69
  */
70
70
  export declare function getPartialMatch(searchText: string, array: readonly string[]): string | undefined;
71
71
  /**
@@ -103,10 +103,10 @@ function getObjectPartialMatch(searchText, object) {
103
103
  * const array = ["foo", "bar"];
104
104
  * const searchText = "f";
105
105
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
106
- *
107
- * @returns If a match was found, returns the array element. If a match was not
108
- * found, returns undefined.
109
106
  * ```
107
+ *
108
+ * @returns If a match was found, returns the array element. If a match was not found, returns
109
+ * undefined.
110
110
  */
111
111
  function getPartialMatch(searchText, array) {
112
112
  const sortedArray = array.toSorted();
@@ -26,10 +26,10 @@ local assertDefined = ____utils.assertDefined
26
26
  -- const array = ["foo", "bar"];
27
27
  -- const searchText = "f";
28
28
  -- const match = getPartialMatch(array, searchText); // match is now equal to "foo"
29
- --
30
- -- @returns If a match was found, returns the array element. If a match was not
31
- -- found, returns undefined.
32
29
  -- ```
30
+ --
31
+ -- @returns If a match was found, returns the array element. If a match was not found, returns
32
+ -- undefined.
33
33
  function ____exports.getPartialMatch(self, searchText, array)
34
34
  local sortedArray = __TS__ArrayToSorted(array)
35
35
  searchText = string.lower(searchText)
@@ -6657,10 +6657,10 @@ export declare function getParentFunctionDescription(this: void, levels?: number
6657
6657
  * const array = ["foo", "bar"];
6658
6658
  * const searchText = "f";
6659
6659
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
6660
- *
6661
- * @returns If a match was found, returns the array element. If a match was not
6662
- * found, returns undefined.
6663
6660
  * ```
6661
+ *
6662
+ * @returns If a match was found, returns the array element. If a match was not found, returns
6663
+ * undefined.
6664
6664
  */
6665
6665
  export declare function getPartialMatch(searchText: string, array: readonly string[]): string | undefined;
6666
6666
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 87.8.0
3
+ isaacscript-common 87.8.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -17915,10 +17915,10 @@ local assertDefined = ____utils.assertDefined
17915
17915
  -- const array = ["foo", "bar"];
17916
17916
  -- const searchText = "f";
17917
17917
  -- const match = getPartialMatch(array, searchText); // match is now equal to "foo"
17918
- --
17919
- -- @returns If a match was found, returns the array element. If a match was not
17920
- -- found, returns undefined.
17921
17918
  -- ```
17919
+ --
17920
+ -- @returns If a match was found, returns the array element. If a match was not found, returns
17921
+ -- undefined.
17922
17922
  function ____exports.getPartialMatch(self, searchText, array)
17923
17923
  local sortedArray = __TS__ArrayToSorted(array)
17924
17924
  searchText = string.lower(searchText)
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.13"
8
+ "packageVersion": "7.53.3"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "87.8.1",
3
+ "version": "87.8.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -34,13 +34,13 @@
34
34
  "lint": "tsx --tsconfig ./scripts/tsconfig.json ./scripts/lint.mts"
35
35
  },
36
36
  "dependencies": {
37
- "isaac-typescript-definitions": "42.3.0"
37
+ "isaac-typescript-definitions": "42.3.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@microsoft/api-extractor": "7.52.13",
41
- "complete-node": "12.0.0",
40
+ "@microsoft/api-extractor": "7.53.3",
41
+ "complete-node": "12.2.1",
42
42
  "eslint-plugin-sort-exports": "0.9.1",
43
- "typescript-eslint": "8.43.0",
43
+ "typescript-eslint": "8.46.2",
44
44
  "typescript-to-lua": "1.32.0"
45
45
  }
46
46
  }
@@ -1,3 +1,5 @@
1
+ /* eslint-disable jsdoc/escape-inline-tags */
2
+
1
3
  /**
2
4
  * If you decide to structure your mod as a set of feature classes, you can use decorators to
3
5
  * automatically register callbacks.
@@ -114,10 +114,10 @@ export function getObjectPartialMatch<T>(
114
114
  * const array = ["foo", "bar"];
115
115
  * const searchText = "f";
116
116
  * const match = getPartialMatch(array, searchText); // match is now equal to "foo"
117
- *
118
- * @returns If a match was found, returns the array element. If a match was not
119
- * found, returns undefined.
120
117
  * ```
118
+ *
119
+ * @returns If a match was found, returns the array element. If a match was not found, returns
120
+ * undefined.
121
121
  */
122
122
  export function getPartialMatch(
123
123
  searchText: string,