fix(resources): Silence the TS compiler

This commit is contained in:
Taso committed 2021-06-08 12:48:48 -04:00
1 parent 42b2970428
commit 54d456cc8a
2 files changed
+5 -5

No files matched your search

@@ -25,7 +25,7 @@ on('playerDropped', () => {
const src = getSource(); const src = getSource();
// Get identifier for player to remove // Get identifier for player to remove
try { try {
PlayerService.handleUnloadPlayerEvent(src, true); PlayerService.handleUnloadPlayerEvent(src);
} catch (e) { } catch (e) {
playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`); playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`);
} }
+4 -4
View File
@@ -1,13 +1,13 @@
import apps from './apps'; import apps from './apps';
export function sendMessage(app: string, method: string, data: any): void { export function sendMessage(app: string, method: string, data: any): void {
return SendNuiMessage( // eslint-disable-next-line @typescript-eslint/ban-ts-comment
JSON.stringify({ // @ts-ignore
return SendNUIMessage({
app, app,
method, method,
data, data,
}), });
);
} }
export function sendTwitterMessage(method: string, data: any = {}): void { export function sendTwitterMessage(method: string, data: any = {}): void {