public static TsTypeDefinition Interface( Type type, IEnumerable <TsInterfaceMember> members, IEnumerable <TsTypeReference> extends, IEnumerable <string> typeParameters, DerivedTypesUnionGeneration derivedTypesUnionGeneration, TsTypeDefinition parentToAugument, string typeMemberName ) { return(new InterfaceType(type, members, extends, typeParameters, derivedTypesUnionGeneration, parentToAugument, typeMemberName)); }
public InterfaceType( Type type, IEnumerable <TsInterfaceMember> members, IEnumerable <TsTypeReference> extends, IEnumerable <string> typeParameters, DerivedTypesUnionGeneration derivedTypesUnionGeneration, TsTypeDefinition parentToAugument, string typeMemberName ) : base(TypeUtils.GetNameWithoutGenericArity(type)) { _members = ImmutableArray.CreateRange(members); _extends = ImmutableArray.CreateRange(extends); _typeParameters = ImmutableArray.CreateRange(typeParameters); _type = type; _derivedTypesUnionGeneration = derivedTypesUnionGeneration; _parentToAugument = parentToAugument; _typeMemberName = typeMemberName; }