Elf logic : proxy on shredder parameters
SamLebarbare opened this issue · comments
Here the trick:
/* stateFromGaladriel is received as a Shredder */
myQuest(stateFromGaladriel) {
const state = Elf.Spirit.from(GaladrielState)(stateFromGaladriel);
/* Now here, you can use magic */
const {id, name} = state;
}
I close because Elf.Spirit.from
works pretty fine now.