@cybermp/client-types 2.0.0 → 2.0.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.
package/out/game.d.ts CHANGED
@@ -3,6 +3,15 @@
3
3
  import * as CyberEnums from "./enums.d.ts";
4
4
  import * as CyberBitfields from "./bitfields.d.ts";
5
5
 
6
+ type Handle<T = any> = T;
7
+ type WeakHandle<T = any> = T;
8
+ type ScriptRef<T = any> = T;
9
+ type NodeRef<T = any> = T;
10
+ type ResAsyncRef<T> = T;
11
+ type CurveData<T> = T;
12
+ type ResRef<T> = T;
13
+ type MultiChannelCurve<T> = T;
14
+
6
15
  interface MpFuncs {
7
16
  "Abs"(a: number): number;
8
17
  "AbsF"(a: number): number;
@@ -1,6 +1,8 @@
1
1
  import type * as CyberEnums from '../enums';
2
2
  import type { MpClasses, Vector3 } from '../game';
3
3
 
4
+ type UnwrapClass<T> = T extends { new (): infer U } ? U : T;
5
+
4
6
  type OverrideFunction = <
5
7
  C extends keyof MpClasses,
6
8
  I extends UnwrapClass<MpClasses[C]>,
@@ -1,3 +1,4 @@
1
+ import type { MpCef } from './cef';
1
2
  import type { MpDiscord } from './discord';
2
3
  import type { MpEvents } from './events';
3
4
  import type { MpLocalStorage } from './local-storage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cybermp/client-types",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "types": "./out/index.d.ts",
6
6
  "files": [
@@ -1,13 +0,0 @@
1
- declare global {
2
- type UnwrapClass<T> = T extends { new (): infer U } ? U : T;
3
- type Handle<T = any> = T;
4
- type WeakHandle<T = any> = T;
5
- type ScriptRef<T = any> = T;
6
- type NodeRef<T = any> = T;
7
- type ResAsyncRef<T> = T;
8
- type CurveData<T> = T;
9
- type ResRef<T> = T;
10
- type MultiChannelCurve<T> = T;
11
- }
12
-
13
- export {};