@gta5urban/types-server 2.2.1 → 2.2.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/index.d.ts +6 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1943,14 +1943,17 @@ declare interface CommandsMpArgs<K extends keyof CommandsMpArgType = keyof Comma
|
|
|
1943
1943
|
rest?: boolean;
|
|
1944
1944
|
}
|
|
1945
1945
|
|
|
1946
|
+
declare interface CommandsMpInternal<T extends CommandsMpArgs[] = CommandsMpArgs[]> extends CommandsMpOptions<T> {
|
|
1947
|
+
lastUse: Map<number, number>;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1946
1950
|
declare interface CommandsMp {
|
|
1947
1951
|
add: <T extends CommandsMpArgs[]>(command: CommandsMpOptions<T>) => void;
|
|
1948
1952
|
execute: (player: PlayerMp, raw: string) => void;
|
|
1949
|
-
commands: Map<string,
|
|
1953
|
+
commands: Map<string, CommandsMpInternal>;
|
|
1950
1954
|
getCommands: (player: PlayerMp) => CommandsMpInterface[];
|
|
1951
1955
|
}
|
|
1952
1956
|
|
|
1953
|
-
|
|
1954
1957
|
declare interface Mp {
|
|
1955
1958
|
Player: typeof PlayerMp;
|
|
1956
1959
|
players: PlayerMpPool;
|
|
@@ -1996,7 +1999,7 @@ declare interface Mp {
|
|
|
1996
1999
|
/**
|
|
1997
2000
|
* custom command entities
|
|
1998
2001
|
*/
|
|
1999
|
-
|
|
2002
|
+
|
|
2000
2003
|
commands: CommandsMp;
|
|
2001
2004
|
|
|
2002
2005
|
}
|