import { Type } from "./deps.ts" ; export class ViewHelperCatalog { private static readonly catalog = new Map < Type , Set < string > > ( ) ; static registerViewHelperContainer ( type ) { this . catalog . set ( type , new Set ( this . catalog . get ( type ) ) ) ; } static registerViewHelper ( type , helperName ) { let helperNames = this . catalog . get ( type ) ; if ( ! helperNames ) { helperNames = new Set ( ) ; this . catalog . set ( type , helperNames ) ; } helperNames . add ( helperName ) ; } static getHelpers ( ) { return this . catalog . entries ( ) ; } }