it’s what i’ve been doing too. you’re using a static impl though which is sort of a no-no to me but it makes sense just from the name (you likely won’t be running your app instance on more than one platform at a time
)
i’m exploring using module type T to model behaviors instead of type t though and it actually sort of makes sense even though i’m not necessarily generating actual types. in that sense i tend to agree with @tsnobip earlier comment re. records-of-fns being at least uncommon for this purpose in rescript. i haven’t landed on anything final though so just exploring ideas here.
ps. what’s CCA?