/// <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)); }
/// <summary> /// Turns the TypescriptInterface into a TypescriptType. /// </summary> /// <param name="typescriptInterface"></param> public static TypescriptType ToTypescriptType(this TypescriptInterface typescriptInterface) { return(new TypescriptType(typescriptInterface)); }
/// <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)); }