public static void Add(this Dictionary <string, TSAliasDescription> dict, string key, TSSimpleType type, IEnumerable <KeyValuePair <string, string> > jsDoc = null) { var alias = new TSAliasDescription { TargetType = type }; jsDoc?.AddRangeTo(alias.JsDoc); dict[key] = alias; }
public void AddParameter(string name, TSSimpleType type) => AddParameter(name, (ITSType)type);