Closed hanakannzashi closed 1 year ago
Thanks for the PR
The reason why I the decorator is named field
is because we also have another one called variant
. In the future there might be a wildcard one, like auto
. the decorator name should describe its purpose.borsh
, might indicate the origin of the decorator, but not its purpose.
What if you would just do a named import ?
import { field as borsh } from '@dao-xyz/borsh'
Decorator name
field
maybe not specific enough, I think we can add a type alias forfield
namedborsh
that specifically refers to borsh serialization