/// <summary>
        /// Outputs just the enum
        /// </summary>
        public static TypeScriptWriterConfig Declaration(this TypeScriptWriterConfig config, Action <EnumDeclarationWriterConfig> configureDeclaration = null)
        {
            var declarationConfig = new EnumDeclarationWriterConfig();

            configureDeclaration?.Invoke(declarationConfig);

            var writer = new EnumDeclarationWriter(declarationConfig);

            config.AddTypeScriptWriter(writer);
            return(config);
        }
Ejemplo n.º 2
0
 public EnumDeclarationWriter(EnumDeclarationWriterConfig config)
 {
     _const = config?.Const ?? false;
 }