mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
This commit is contained in:
@@ -6,13 +6,11 @@ import { getNodeById } from './dom-node';
|
||||
import { mainThreadify } from '../utils';
|
||||
|
||||
// Use lazy requires for core modules
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const getAppRootView = () => require('../application').getRootView();
|
||||
|
||||
let unsetValue;
|
||||
function unsetViewValue(view, name) {
|
||||
if (!unsetValue) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
unsetValue = require('../ui/core/properties').unsetValue;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,11 +14,8 @@ function lazy<T>(action: () => T): () => T {
|
||||
|
||||
return () => _value || (_value = action());
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const percentLengthToStringLazy = lazy<(length) => string>(() => require('../ui/styling/style-properties').PercentLength.convertToString);
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const getSetPropertiesLazy = lazy<(view: ViewBase) => [string, any][]>(() => require('../ui/core/properties').getSetProperties);
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const getComputedCssValuesLazy = lazy<(view: ViewBase) => [string, any][]>(() => require('../ui/core/properties').getComputedCssValues);
|
||||
|
||||
export function registerInspectorEvents(inspector: InspectorEvents) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as inspectorCommandTypes from './InspectorBackendCommands.ios';
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const inspectorCommands: typeof inspectorCommandTypes = require('./InspectorBackendCommands');
|
||||
|
||||
import * as debuggerDomains from '.';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as inspectorCommandTypes from './InspectorBackendCommands.ios';
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const inspectorCommands: typeof inspectorCommandTypes = require('./InspectorBackendCommands');
|
||||
|
||||
import * as debuggerDomains from '.';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as inspectorCommandTypes from './InspectorBackendCommands.ios';
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const inspectorCommands: typeof inspectorCommandTypes = require('./InspectorBackendCommands');
|
||||
|
||||
import * as debuggerDomains from '.';
|
||||
|
||||
Reference in New Issue
Block a user