You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after 312 it does not work properly due to the transform function returning an object instead of mutating the args in place. I note this was changed in pkg/platform/src/components/component.ts of this commit
the fix is easy, change the transform function to mutate
code below used to work pre 0.0.312
after 312 it does not work properly due to the transform function returning an object instead of mutating the args in place. I note this was changed in pkg/platform/src/components/component.ts of this commit
the fix is easy, change the transform function to mutate
or
However the original will not show up as a type error as the return type was
void
ignoring the return type, where it would have better beenundefined
e.g.
export type Transform<T> = T | ((args: T) => void);
toexport type Transform<T> = T | ((args: T) => undefined);
The text was updated successfully, but these errors were encountered: