コード例 #1
0
 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));
 }
コード例 #2
0
 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;
 }