You've already forked joplin
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user