MCPcopy Index your code
hub / github.com/reactnativecn/react-native-update / assertWeb

Function assertWeb

src/utils.ts:103–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101};
102
103export const assertWeb = () => {
104 if (isWeb) {
105 warn(i18n.t('dev_web_not_supported'));
106 return false;
107 }
108 return true;
109};
110
111export const computeProgress = (received: number, total: number): number =>
112 total > 0

Callers 3

client.tsFile · 0.90
PushyClass · 0.90
UpdateProviderFunction · 0.90

Calls 2

warnFunction · 0.85
tMethod · 0.80

Tested by

no test coverage detected