import type { Class, DeepPartial } from '@travetto/runtime'; declare global { interface Function { /** * Will produce a new instance of this class with the provided data bound to it * * NOTE: Only applies to Schema-based classes, will throw a runtime error otherwise * @param data The data to bind * @param view The optional view to limit the bind to */ from(this: Class, data: DeepPartial, view?: string): T; } }