lenix 1.8.13 → 1.8.14

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/client/control.ts CHANGED
@@ -121,8 +121,9 @@ const on = ({
121
121
  key,
122
122
  onEvent,
123
123
  type = 'player',
124
- }: Bind & {
124
+ }: Pick<Bind, 'key' | 'onEvent'> & {
125
125
  event: Extract<Bind['event'], 'press' | 'hold' | 'release' | 'released' | 'disabledPress' | 'disabledHold' | 'disabledRelease' | 'disabledReleased'>
126
+ type?: Bind['type']
126
127
  }) => {
127
128
  asserts(CONTROLS[key], `Could not find key<${key}>`)
128
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.8.13",
3
+ "version": "1.8.14",
4
4
  "description": "Typed FiveM utilities for client, server, shared, and NUI scripts",
5
5
  "author": "Lenix",
6
6
  "license": "MIT",
package/shared/types.ts CHANGED
@@ -3,17 +3,17 @@ import type { JsonValue } from "@lenix/lenix"
3
3
  /**
4
4
  * Three-dimensional coordinates plus heading.
5
5
  */
6
- export type Vec4 = readonly [number, number, number, number]
6
+ export type Vec4 = [number, number, number, number]
7
7
 
8
8
  /**
9
9
  * Three-dimensional coordinates.
10
10
  */
11
- export type Vec3 = readonly [number, number, number]
11
+ export type Vec3 = [number, number, number]
12
12
 
13
13
  /**
14
14
  * Two-dimensional coordinates.
15
15
  */
16
- export type Vec2 = readonly [number, number, number]
16
+ export type Vec2 = [number, number, number]
17
17
 
18
18
  /**
19
19
  * Typed event tuple containing an event id and positional parameters.