Skip to content

Commit

Permalink
client: Fix getPermissionState (#283)
Browse files Browse the repository at this point in the history
* client: Fix getPermissionState

* server: Fix PointBlip constructor

* Revert "server: Fix PointBlip constructor"

This reverts commit d0cf49f.
  • Loading branch information
xxshady authored and xLuxy committed Nov 2, 2023
1 parent ac59ad7 commit 4925971
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ declare module "alt-client" {
ChineseTraditional = "zh_tw",
}

export const enum PermissionState {
ALLOWED,
DENIED,
UNSPECIFIED,
FAILED,
}

export const enum StatName {
Stamina = "stamina",
Strength = "strength",
Expand Down Expand Up @@ -2621,8 +2614,8 @@ declare module "alt-client" {
* @param permId Permission id.
* @returns Permission state.
*/
export function getPermissionState(permId: shared.Permission): PermissionState;
export function getPermissionState<T extends number, V extends number = PermissionState>(permId: T): V;
export function getPermissionState(permId: shared.Permission): boolean;
export function getPermissionState<T extends number>(permId: T): boolean;

/**
* Gets a value of the specified statistic.
Expand Down

0 comments on commit 4925971

Please sign in to comment.