Exemple #1
0
 /// <summary>Initializes a new instance of the <see cref="TypeScriptGenerator" /> class.</summary>
 /// <param name="rootObject">The root object to search for all JSON Schemas.</param>
 /// <param name="settings">The generator settings.</param>
 /// <param name="resolver">The resolver.</param>
 public TypeScriptGenerator(object rootObject, TypeScriptGeneratorSettings settings, TypeScriptTypeResolver resolver)
     : base(rootObject, resolver, settings)
 {
     _resolver = resolver;
     Settings  = settings;
 }
 /// <summary>Initializes a new instance of the <see cref="TypeScriptTypeResolver" /> class.</summary>
 /// <param name="settings">The settings.</param>
 public TypeScriptTypeResolver(TypeScriptGeneratorSettings settings)
     : base(settings)
 {
     Settings = settings;
 }
Exemple #3
0
 /// <summary>Initializes a new instance of the <see cref="TypeScriptGenerator"/> class.</summary>
 /// <param name="rootObject">The root object to search for all JSON Schemas.</param>
 /// <param name="settings">The generator settings.</param>
 public TypeScriptGenerator(object rootObject, TypeScriptGeneratorSettings settings)
     : this(rootObject, settings, new TypeScriptTypeResolver(settings))
 {
 }