MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getInheritedOption

Function getInheritedOption

src/utils.ts:50–58  ·  view source on GitHub ↗
(options: any, key: string)

Source from the content-addressed store, hash-verified

48 * first instance of the provided key.
49 */
50export function getInheritedOption(options: any, key: string): any {
51 let target = options;
52 while (target) {
53 if (target[key] !== undefined) {
54 return target[key];
55 }
56 target = target.parent;
57 }
58}
59
60/**
61 * Sets the VSCode environment variables to be used by the CLI when called by VSCode

Callers 2

registerMethod · 0.90
prepareMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…