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
The current interface RuntypeBase requires methods check, guard, and assert, but these APIs are built on validate. Probably it's better to have RuntypeBase only need validate method predefined and others are automatically populated internally, so that users can easily define their own runtypes, and make them integrated into runtypes' ecosystem.
Also we would provide a helper function to upgrade essential objects which have only validate method into full-fledged runtypes. (Maybe exposing create function?)
The text was updated successfully, but these errors were encountered:
The current interface
RuntypeBase
requires methodscheck
,guard
, andassert
, but these APIs are built onvalidate
. Probably it's better to haveRuntypeBase
only needvalidate
method predefined and others are automatically populated internally, so that users can easily define their own runtypes, and make them integrated into runtypes' ecosystem.Also we would provide a helper function to upgrade essential objects which have only
validate
method into full-fledged runtypes. (Maybe exposingcreate
function?)The text was updated successfully, but these errors were encountered: