mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -5,6 +5,7 @@ import { Trace } from '../trace';
|
||||
|
||||
export { ad } from './native-helper';
|
||||
export * from './utils-common';
|
||||
export { Source } from './debug';
|
||||
|
||||
const MIN_URI_SHARE_RESTRICTED_APK_VERSION = 24;
|
||||
|
||||
|
||||
1
nativescript-core/utils/index.d.ts
vendored
1
nativescript-core/utils/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import { dip, px } from '../ui/core/view';
|
||||
|
||||
export * from './mainthread-helper';
|
||||
export { Source } from './debug';
|
||||
|
||||
export const RESOURCE_PREFIX: string;
|
||||
export const FILE_PREFIX: string;
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Trace } from '../trace';
|
||||
|
||||
export { ios } from './native-helper';
|
||||
export * from './utils-common';
|
||||
export { Source } from './debug';
|
||||
|
||||
export function openFile(filePath: string): boolean {
|
||||
try {
|
||||
|
||||
@@ -27,7 +27,7 @@ export function isObject(value: any): boolean {
|
||||
}
|
||||
|
||||
export function isUndefined(value: any): boolean {
|
||||
return value === undefined;
|
||||
return typeof value === 'undefined';
|
||||
}
|
||||
|
||||
export function isDefined(value: any): boolean {
|
||||
@@ -35,7 +35,7 @@ export function isDefined(value: any): boolean {
|
||||
}
|
||||
|
||||
export function isNullOrUndefined(value: any): boolean {
|
||||
return value === undefined || value === null;
|
||||
return typeof value === 'undefined' || value === null;
|
||||
}
|
||||
|
||||
export function verifyCallback(value: any) {
|
||||
|
||||
Reference in New Issue
Block a user