MCPcopy Create free account
hub / github.com/shoutem/ui / createScopedResolver

Method createScopedResolver

services/variableResolver.js:54–65  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

52 }
53
54 createScopedResolver(scope) {
55 return (...params) => {
56 if (params.length === 1) {
57 return this.getScopedVariable(scope, params[0]);
58 }
59 if (params.length === 2) {
60 return this.getScopedVariable(params[0], params[1]);
61 }
62
63 return undefined;
64 };
65 }
66}
67
68// Expose both, the resolver service, and the default resolver working with

Callers

nothing calls this directly

Calls 1

getScopedVariableMethod · 0.95

Tested by

no test coverage detected