Extenting Type interface
I want to make a custom function
type({}).migrate()
and add it to BaseType
prototype
How do I do it properly?2 Replies
Sadly would be very convoluted.
You'd have to do something hacky like modifying the
BaseRoot
prototype directly to add it or you could create a constructor that just delegates to arktype then assigns the extra method to it
I guess this works well enough then