import { editorEnvironment } from "../WebappConfiguration" ; export class MenuItem { title : string ; action : ( id : number ) => void ; icon ? : Object ; id : number ; } export function metaTypeForExtension ( extension ) { for ( let [ key , value ] of editorEnvironment . fileExtensions ) { if ( value === extension ) return key ; } return "" ; }