@tlua/gmod 1.0.3 → 1.0.4

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/index.d.tlua CHANGED
@@ -175,6 +175,7 @@
175
175
  /// <reference path="./types/halo.d.tlua" />
176
176
  /// <reference path="./types/hammer.d.tlua" />
177
177
  /// <reference path="./types/hook.d.tlua" />
178
+ /// <reference path="./types/hook_events.d.tlua" />
178
179
  /// <reference path="./types/html.d.tlua" />
179
180
  /// <reference path="./types/http.d.tlua" />
180
181
  /// <reference path="./types/iconeditor.d.tlua" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tlua/gmod",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Garry's Mod type declarations for tlua, generated from the GMod wiki.",
5
5
  "types": "index.d.tlua",
6
6
  "files": [
package/types/hook.d.tlua CHANGED
@@ -8,16 +8,15 @@ declare hook: HookLib;
8
8
 
9
9
  interface HookLib {
10
10
  /**
11
- * Registers a function (or "callback") with the Hook system so that it will
12
- * be called automatically whenever a specific event (or "hook") occurs.
13
- * @realm shared
14
- * @realm menu
11
+ * Registers a function (or "callback") with the [Hook](https://wiki.facepunch.com/gmod/Hook) system so that it will be called automatically whenever a specific event (or "hook") occurs.
12
+ *
13
+ *
14
+ * @realm shared and menu
15
15
  * @source https://wiki.facepunch.com/gmod/hook.Add
16
16
  */
17
17
  Add(eventName: string, identifier: any, func: function): void;
18
18
  }
19
19
 
20
-
21
20
  interface HookLib {
22
21
  /**
23
22
  * Calls all hooks associated with the given event until one returns something other than `nil`, and then returns that data.