MCPcopy
hub / github.com/ionic-team/capacitor / get

Function get

core/src/runtime.ts:165–179  ·  view source on GitHub ↗
(_, prop)

Source from the content-addressed store, hash-verified

163 {},
164 {
165 get(_, prop) {
166 switch (prop) {
167 // https://github.com/facebook/react/issues/20030
168 case '$$typeof':
169 return undefined;
170 case 'toJSON':
171 return () => ({});
172 case 'addListener':
173 return pluginHeader ? addListenerNative : addListener;
174 case 'removeListener':
175 return removeListener;
176 default:
177 return createPluginMethodWrapper(prop);
178 }
179 },
180 },
181 );
182

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected