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
+8 -8

No files matched your search

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