1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: shim.mobilePlatform: Use a stronger return type (#13415)

This commit is contained in:
Henry Heino
2025-10-09 13:46:04 -07:00
committed by GitHub
parent 191775310e
commit d096a90c0e
8 changed files with 29 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ import Setting, { AppType, Env } from '../models/Setting';
import BaseService from '../services/BaseService';
import FsDriverNode from '../fs-driver-node';
import time from '../time';
import shim from '../shim';
import shim, { MobilePlatform } from '../shim';
import uuid from '../uuid';
import ResourceService from '../services/ResourceService';
import KeymapService from '../services/KeymapService';
@@ -1119,7 +1119,7 @@ export const newOcrService = () => {
return new OcrService([driver]);
};
export const mockMobilePlatform = (platform: string) => {
export const mockMobilePlatform = (platform: MobilePlatform) => {
const originalMobilePlatform = shim.mobilePlatform;
const originalIsNode = shim.isNode;