mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(resources): General Linting
This commit is contained in:
1 parent
457926263d
commit
f1012958e2
15 files changed
+25
-34
No files matched your search
@@ -1,5 +1,5 @@
|
||||
// https://forum.cfx.re/t/typescript-vs-lua-questions/612483/11
|
||||
export const Delay = (ms: number) => new Promise((res) => setTimeout(res, ms));
|
||||
export const Delay = (ms: number): Promise<void> => new Promise((res) => setTimeout(res, ms));
|
||||
|
||||
// Credits to d0p3t
|
||||
// https://github.com/d0p3t/fivem-js/blob/master/src/utils/UUIDV4.ts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import apps from './apps';
|
||||
|
||||
export function sendMessage(app: string, method: string, data: any) {
|
||||
export function sendMessage(app: string, method: string, data: any): void {
|
||||
return SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app,
|
||||
@@ -10,30 +10,30 @@ export function sendMessage(app: string, method: string, data: any) {
|
||||
);
|
||||
}
|
||||
|
||||
export function sendTwitterMessage(method: string, data: any = {}) {
|
||||
export function sendTwitterMessage(method: string, data: any = {}): void {
|
||||
return sendMessage(apps.TWITTER, method, data);
|
||||
}
|
||||
|
||||
export function sendMessageEvent(method: string, data: any = {}) {
|
||||
export function sendMessageEvent(method: string, data: any = {}): void {
|
||||
return sendMessage(apps.MESSAGES, method, data);
|
||||
}
|
||||
|
||||
export function sendNotesEvent(method: string, data: any = {}) {
|
||||
export function sendNotesEvent(method: string, data: any = {}): void {
|
||||
return sendMessage(apps.NOTES, method, data);
|
||||
}
|
||||
|
||||
export function sendMarketplaceEvent(method: string, data: any = {}) {
|
||||
export function sendMarketplaceEvent(method: string, data: any = {}): void {
|
||||
sendMessage(apps.MARKETPLACE, method, data);
|
||||
}
|
||||
|
||||
export function sendContactsEvent(method: string, data: any = {}) {
|
||||
export function sendContactsEvent(method: string, data: any = {}): void {
|
||||
sendMessage(apps.CONTACTS, method, data);
|
||||
}
|
||||
|
||||
export function sendCameraEvent(method: string, data: any = {}) {
|
||||
export function sendCameraEvent(method: string, data: any = {}): void {
|
||||
sendMessage(apps.CAMERA, method, data);
|
||||
}
|
||||
|
||||
export function sendMatchEvent(method: string, data: any = {}) {
|
||||
export function sendMatchEvent(method: string, data: any = {}): void {
|
||||
return sendMessage(apps.MATCH, method, data);
|
||||
}
|
||||
Reference in new issue
Block a user