MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getValue

Function getValue

packages/webpack5/src/helpers/config.ts:30–42  ·  view source on GitHub ↗
(key: string, defaultValue?: any)

Source from the content-addressed store, hash-verified

28 * @param defaultValue The fallback value if the key is not set in the config.
29 */
30export function getValue<T = any>(key: string, defaultValue?: any): T {
31 const lib = getCLILib();
32
33 if (!lib) {
34 return defaultValue;
35 }
36
37 return (
38 lib.projectConfigService as {
39 getValue(key: string, defaultValue?: any): T;
40 }
41 ).getValue(key, defaultValue);
42}

Callers 3

getEntryPathFunction · 0.90
base.tsFile · 0.90
getDistPathFunction · 0.90

Calls 2

getCLILibFunction · 0.85
getValueMethod · 0.65

Tested by

no test coverage detected