Skip to content

Commit f78d6ee

Browse files
committed
chore: formatting
1 parent 8db31aa commit f78d6ee

6 files changed

Lines changed: 10 additions & 15 deletions

File tree

package/client/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ export * from './streaming';
1212
export * from './vehicleProperties';
1313

1414
export * as lib from '.';
15-

package/common/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export * from './hooks';
1010
export * from './locale';
1111
export * from './version';
1212
export * from './zones';
13-
export * from './misc';
13+
export * from './misc';

package/common/locale/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function locale<T extends string>(str: T, ...args: any[]): string {
3232
}
3333

3434
return str;
35-
};
35+
}
3636

3737
export const getLocales = () => dict;
3838

@@ -92,6 +92,6 @@ export const initLocale = (key?: string) => {
9292
initLocale();
9393

9494
export function createLocales<T extends Record<string, any>>() {
95-
type Keys = FlattenObjectKeys<T>
96-
return <K extends Keys>(key: K, ...args: any[]) => locale(key, ...args)
97-
}
95+
type Keys = FlattenObjectKeys<T>;
96+
return <K extends Keys>(key: K, ...args: any[]) => locale(key, ...args);
97+
}

package/common/misc.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
export const context = IsDuplicityVersion() ? 'server' : 'client';
22

33
export type FlattenObjectKeys<T> = {
4-
[K in keyof T & string]:
5-
T[K] extends Record<string, any>
6-
? K | `${K}.${FlattenObjectKeys<T[K]>}`
7-
: K
8-
}[keyof T & string]
4+
[K in keyof T & string]: T[K] extends Record<string, any> ? K | `${K}.${FlattenObjectKeys<T[K]>}` : K;
5+
}[keyof T & string];
96

107
export function sleep(ms: number) {
118
return new Promise((resolve) => setTimeout(resolve, ms, null));

package/server/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export * from './game/Ped';
88
export * from './game/Vehicle';
99
export * from './locale';
1010
export * from './version';
11-
export * from './misc'
11+
export * from './misc';
1212

1313
export * as lib from '.';
14-

package/server/misc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { VehicleProperties } from "../common";
1+
import { VehicleProperties } from '../common';
22

33
export function setVehicleProperties(vehicle: number, props: VehicleProperties) {
4-
Entity(vehicle).state.set('ox_lib:setVehicleProperties', props, true);
4+
Entity(vehicle).state.set('ox_lib:setVehicleProperties', props, true);
55
}

0 commit comments

Comments
 (0)