Пример #1
0
 /// <summary>
 /// Creates and adds a new TypescriptType using the given TypescriptInterface.
 /// </summary>
 /// <param name="typescriptInterface">The typescriptInterface to add.</param>
 public void Add(TypescriptInterface typescriptInterface)
 {
     Add(new TypescriptType(typescriptInterface));
 }
Пример #2
0
 /// <summary>
 /// Turns the TypescriptInterface into a TypescriptType.
 /// </summary>
 /// <param name="typescriptInterface"></param>
 public static TypescriptType ToTypescriptType(this TypescriptInterface typescriptInterface)
 {
     return(new TypescriptType(typescriptInterface));
 }
Пример #3
0
 /// <summary>
 /// Creates a new TypescriptGenericTypeArgument using the given interface.
 /// </summary>
 /// <param name="interface">The interface to add.</param>
 public void Add(TypescriptInterface @interface)
 {
     Add(new TypescriptGenericTypeArgument(@interface));
 }