Option.some(object) if the node's data is an ECHO object, Option.none() otherwise.
GraphBuilder.createExtension({
id: 'objectProperties',
match: AppNodeMatcher.whenEchoObject,
connector: (object) => {
// `object` is typed as Obj.Unknown
const id = Obj.getURI(object);
return Effect.succeed([{ id: `${id}.settings`, ... }]);
},
});
Can be composed directly with whenAll/whenAny/whenNot while
preserving the Obj.Unknown data type in the result.
whenEchoObjectMatches - Returns the node instead of data for legacy composition.
Matches a node whose data is any ECHO object. Returns the object data (not the node) for direct use in callbacks.
Use this when you need to work with any ECHO object regardless of its specific type.