예제 #1
0
 internal TypeScriptFluentModuleMember(TypeScriptFluent fluentConfigurator, TsModuleMember member)
     : base(fluentConfigurator)
 {
     this.Member = member;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the TypeScriptFluent class
 /// </summary>
 /// <param name="fluentConfigurator">The source fluent configurator</param>
 protected TypeScriptFluent(TypeScriptFluent fluentConfigurator)
 {
     _modelBuilder    = fluentConfigurator._modelBuilder;
     _scriptGenerator = fluentConfigurator._scriptGenerator;
 }
예제 #3
0
        /// <summary>
        /// Splits the current TypeScriptFluent output into several files, one per module
        /// </summary>
        /// <param name="path">The path where the files should be saved.</param>
        /// <returns></returns>
        public static string ToModules(this TypeScriptFluent typeScriptFluent, string path)
        {
            string typeScript = typeScriptFluent.Generate();

            return(ToModules(typeScript, path));
        }