Skip to content

Commit

Permalink
Add one method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy committed May 16, 2024
1 parent eaa21eb commit a3d9429
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TypeScript.ContractGenerator/CustomTypeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ public CustomTypeGenerator WithTypeBuildingContext(Func<ITypeInfo, bool> accept,
typeBuildingContextRules.Add(new TypeBuildingContextRule(accept, createContext));
return this;
}

public CustomTypeGenerator WithTypeBuildingContext(Func<ITypeInfo, bool> accept, Func<ITypeInfo, ITypeBuildingContext> createContext)
{
typeBuildingContextRules.Add(new TypeBuildingContextRule(accept, createContext));
return this;
}

public CustomTypeGenerator WithPropertyResolver(IPropertyResolver propertyResolver)
{
Expand Down

0 comments on commit a3d9429

Please sign in to comment.