import { Type } from "../deps.ts" ; import { ViewHelperCatalog } from "../view-helper-catalog.ts" ; /**
 * Defines a view helper. A view helper is a function that can be used inside of an MVC view.
 */ export function ViewHelper ( ) { return function ( target , propertyKey ? ) { ViewHelperCatalog . registerViewHelper ( target . constructor as Type , propertyKey ?. toString ( ) as string ) ; } ; }