-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29661 from VickyStash/ts-migration/app-lib
[No QA] [TS migration] Migrate 'App.js' lib to TypeScript
- Loading branch information
Showing
5 changed files
with
175 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
function getBrowser() { | ||
return ''; | ||
} | ||
import type {GetBrowser, IsMobile, IsMobileChrome, IsMobileSafari, IsSafari, OpenRouteInDesktopApp} from './types'; | ||
|
||
function isMobile() { | ||
return false; | ||
} | ||
const getBrowser: GetBrowser = () => ''; | ||
|
||
function isMobileSafari() { | ||
return false; | ||
} | ||
function isMobileChrome() { | ||
return false; | ||
} | ||
const isMobile: IsMobile = () => false; | ||
|
||
function isSafari() { | ||
return false; | ||
} | ||
const isMobileSafari: IsMobileSafari = () => false; | ||
|
||
function openRouteInDesktopApp() {} | ||
const isMobileChrome: IsMobileChrome = () => false; | ||
|
||
const isSafari: IsSafari = () => false; | ||
|
||
const openRouteInDesktopApp: OpenRouteInDesktopApp = () => {}; | ||
|
||
export {getBrowser, isMobile, isMobileSafari, isSafari, isMobileChrome, openRouteInDesktopApp}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type GetBrowser = () => string; | ||
|
||
type IsMobile = () => boolean; | ||
|
||
type IsMobileSafari = () => boolean; | ||
|
||
type IsMobileChrome = () => boolean; | ||
|
||
type IsSafari = () => boolean; | ||
|
||
type OpenRouteInDesktopApp = (shortLivedAuthToken?: string, email?: string) => void; | ||
|
||
export type {GetBrowser, IsMobile, IsMobileSafari, IsMobileChrome, IsSafari, OpenRouteInDesktopApp}; |
Oops, something went wrong.