in lib/connection.ts [89:110]
setInterface(remoteMethods: string[]) {
this.remote = {};
remoteMethods.forEach(
(key: string) => {
// If key is nested, we need to create nested structure
const parts = splitPath(key);
let current = this.remote;
for (let i = 0; i < parts.length - 1; i++)
{
const part = parts[i];
if (!current[part] || typeof current[part] !== 'object') {
current[part] = {};
}
current = current[part] as API;
}
current[parts[parts.length - 1]] = this.createMethodWrapper(key);
}
);
this._resolveRemoteMethodsPromise?.();
}