import type * as ts from 'typescript' ; import { createArrowFunction , createBlock , createReturn , } from '../../../typescriptFactory/typescriptFactory' ; export function GetTypeofEnumDescriptor ( enumDeclaration ) { enumDeclaration [ 'modifiers' ] = undefined ; return createArrowFunction ( createBlock ( [ enumDeclaration , createReturn ( enumDeclaration . name ) ] , true ) ) ; }