-
Notifications
You must be signed in to change notification settings - Fork 83
Home
Represents member's access modifier
private
protected
public
Interface containing base properties for some attributes
When true, code for all methods will be automatically generated
When true, code for all properties will be automatically generated
When true, code for all fields will be automatically generated
Reference to code geenrator which will be applied to every method
When true, code for all constructors will be automatically generated
Configuration interface for members supporting names overriding
Name override
Configuration interface for members supporting camelCasing from attribute
camelCase flag
This attribute is used to add reference directive to file containing single TS class typing. It is only used while splitting generated type sto different files
Constructs new instance of TsAddTypeReferenceAttribute using referenced type
Name | Description |
---|---|
type: | Type reference |
Constructs new instance of TsAddTypeReferenceAttribute using referenced type
Name | Description |
---|---|
rawPath: | Raw reference |
Type that should be referenced
Raw reference path that will be added to target file
Base for all attributes
Dummy function body generator If empty then it's being generated empty/return null body.
This attribute will export member as typescript class definition
Base attribute for so-called compilation unit (class, enum, interface etc)
Constructs new instance of TsDeclarationAttributeBase
Place to corresponding namespace
Overrides name
Overrides namespace
Constructs new instance of TsClassAttribute
Export all methods automatically or not.
Export all properties automatically or not.
Export all fields automatically or not.
Reference to code geenrator which will be applied to every method
When true, code for all constructors will be automatically generated
Denotes parameter name and constant value for constructor's :base call We need this attribute because it is programmatically impossible to determine :base call parameters via reflection. So in this case we need some help from user's side
Creates instance of TsBaseParamAttribute
Name | Description |
---|---|
values: | Set of TypeScript expressions to be supplied for super() call |
Parameters for super() call Here should be stored TypeScript expressions
Exports enum as TypeScript Enum
Overrides function export
Base attribute for class members and method parameters
Base attribute for typed members/parameters
Overrides member type
Overrides member type with managed type
Overrides member name
When true them member name will be camelCased regardless configuration setting
Denotes type for generic attribute
Constructs new instance of TsGenericAttribute
Name | Description |
---|---|
type: | Raw TypeScript type name |
Constructs new instance of TsGenericAttribute
Name | Description |
---|---|
strongType: | Type to be resolved to TypeScript name during export |
Instructs DynTyping do not to export mentioned member
Exports specified class or interface as typescript interface
Constructs new instance of TsInterfaceAttribute
Automatically appends I prefix if non-interfaces
Export all methods automatically or not.
Export all properties automatically or not.
Overrides settings for exporting parameters
Specifies default value
Overrides property/field export settings
Forces property to be a nullable
Specifies path of reference which required to be added to result .ts file
Constructs new instance of TsReferenceAttribute
Name | Description |
---|---|
path: | Path that should be written as file to reference tag |
Path to referenced TS file
Specifies exporting enum value
Overrides enum value name
Export configuration builder for class
Configuration builder for type
Technical interface for type (class/interface) configuration builder
Configuration interface for members supporting custom typescript-per-file references
Reference paths list
Configurations for method parameters
Configurations for type members
Type is being configured
Technical interface for class configuration builder
Core fluent export configuration interface
Attribute prototype
Extensions for configuration builders
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}})
Include specified property to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
property: | Property to include |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified property to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
property: | Property to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to selected property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperty2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified property to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
property: | Property to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to selected property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(
0,System.Collections.Generic.IEnumerable{System.Reflection.PropertyInfo},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified properties to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
properties: | Properties to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(
0,System.Func{System.Reflection.PropertyInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified properties to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
predicate: | Predicate function for properties to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithProperties1(
0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified properties to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
bindingFlags: | BindingFlags describing properties to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllProperties1(
0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include all properties to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicProperties1(
0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include all public properties to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}})
Include specified field to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
field: | Field to include |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified property to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
property: | Property to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to selected property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithField2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified property to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
property: | Property to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to selected property |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(
0,System.Collections.Generic.IEnumerable{System.Reflection.FieldInfo},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified fields to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
fields: | Fields to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each field |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(
0,System.Func{System.Reflection.FieldInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified fields to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
predicate: | Predicate function that should mathc for fields to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each field |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllFields1(
0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include all fields to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each field |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicFields1(
0,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include all public fields to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each field |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithFields1(
0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.PropertyExportConfiguration})
Include specified fields to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
bindingFlags: | BindingFlags describing fields to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each field |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.TypeConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Name | Description |
----- | ------ |
configuration: | configuration to be applied to method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod2(Reinforced.Typings.Fluent.ClassConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Func{0,
1}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.TypeConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Action{``0}})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.InterfaceConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Action{``0}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethod1(Reinforced.Typings.Fluent.ClassConfigurationBuilder{
0},System.Linq.Expressions.Expression{System.Action{``0}},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified method to resulting typing. User to mock up method parameters or specify configuration for perticular method parameter
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
method: | Method to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(
0,System.Func{System.Reflection.MethodInfo,System.Boolean},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified methods to resulting typing.
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
predicate: | Predicate function that should mathc for methods to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(
0,System.Reflection.BindingFlags,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified methods to resulting typing.
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
bindingFlags: | BindingFlags describing methods to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithMethods1(
0,System.Collections.Generic.IEnumerable{System.Reflection.MethodInfo},System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include specified methods to resulting typing.
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
methods: | Methods to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithAllMethods1(
0,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include all methods to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.WithPublicMethods1(
0,System.Action{Reinforced.Typings.Fluent.MethodExportConfiguration})
Include all methods to resulting typing
Name | Description |
---|---|
tc: | Configuration builder |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each method |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsInterface``1(Reinforced.Typings.Fluent.ConfigurationBuilder)
Includes specified type to resulting typing exported as interface
Name | Description |
---|---|
builder: | Configuration builder |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsInterfaces(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IInterfaceConfigurationBuilder})
Includes specified types to resulting typing exported as interfaces
Name | Description |
---|---|
builder: | Configuration builder |
Name | Description |
----- | ------ |
types: | Types to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each type |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsClass``1(Reinforced.Typings.Fluent.ConfigurationBuilder)
Includes specified type to resulting typing exported as TypeScript class
Name | Description |
---|---|
builder: | Configuration builder |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsClasses(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IClassConfigurationBuilder})
Includes specified types to resulting typing exported as TypeScript classes
Name | Description |
---|---|
builder: | Configuration builder |
Name | Description |
----- | ------ |
types: | Types to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each type |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsEnum``1(Reinforced.Typings.Fluent.ConfigurationBuilder)
Includes specified type to resulting typing exported as TypeScript enumeration
Name | Description |
---|---|
builder: | Configuration builder |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.ExportAsEnums(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Collections.Generic.IEnumerable{System.Type},System.Action{Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler})
Includes specified types to resulting typing exported as TypeScript enumerations
Name | Description |
---|---|
builder: | Configuration builder |
Name | Description |
----- | ------ |
types: | Types to include |
Name | Description |
----- | ------ |
configuration: | Configuration to be applied to each type |
Returns: Fluent |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.Value1(Reinforced.Typings.Fluent.EnumConfigurationBuilder{
0},``0)
Retrieves configuration builder for particular enumeration value
Name | Description |
---|---|
conf: | Configuration builder |
Name | Description |
----- | ------ |
value: | Enum value |
Returns: Configuration builder |
M:Reinforced.Typings.Fluent.ConfigurationBuildersExtensions.Value(Reinforced.Typings.Fluent.Interfaces.IEnumConfigurationBuidler,System.String)
Retrieves configuration builder for particular enumeration value
Name | Description |
---|---|
conf: | Configuration builder |
Name | Description |
----- | ------ |
propertyName: | String enum property name |
Returns: Configuration builder |
Configuration builder for Enum type
Technical interface for enumeration configuration builder
Type of enumeration
Configurations for exported particular enumeration values
Configuration for enum value export configuration
Configuration for members that are supporting ignoring
Ignore flag
Technical interface for interface configuration builder
Parameter configuration builder
Configuration builder for interface
Fluent configuration builder for exported methods
Fluent configuration builder for exported properties
Set of helper reflection methods
M:Reinforced.Typings.Fluent.LambdaHelpers.ParsePropertyLambda2(System.Linq.Expressions.Expression{System.Func{
0,``1}})
Parses supplied lambda expression and retrieves PropertyInfo from it
Name | Description |
---|---|
lambda: | Property Lambda expression |
Returns: PropertyInfo referenced by this expression |
M:Reinforced.Typings.Fluent.LambdaHelpers.ParsePropertyLambda(System.Linq.Expressions.LambdaExpression)
Parses supplied lambda expression and retrieves PropertyInfo from it
Name | Description |
---|---|
lambda: | Property Lambda expression |
Returns: PropertyInfo referenced by this expression |
M:Reinforced.Typings.Fluent.LambdaHelpers.ParseFieldLambda2(System.Linq.Expressions.Expression{System.Func{
0,``1}})
Parses supplied lambda expression and retrieves PropertyInfo from it
Name | Description |
---|---|
lambda: | Property Lambda expression |
Returns: PropertyInfo referenced by this expression |
M:Reinforced.Typings.Fluent.LambdaHelpers.ParseFieldLambda(System.Linq.Expressions.LambdaExpression)
Parses supplied lambda expression and retrieves PropertyInfo from it
Name | Description |
---|---|
lambda: | Property Lambda expression |
Returns: PropertyInfo referenced by this expression |
M:Reinforced.Typings.Fluent.LambdaHelpers.ParseMethodLambda(System.Linq.Expressions.LambdaExpression)
Parses supplied lambda expression and retrieves PropertyInfo from it
Name | Description |
---|---|
lambda: | Property Lambda expression |
Returns: PropertyInfo referenced by this expression |
Shortcut for method parameters mocking
Parameter mock for specified type
Returns: Mock
M:Reinforced.Typings.Fluent.Ts.Parameter``1(System.Action{Reinforced.Typings.Fluent.ParameterConfigurationBuilder})
Parameter mock with parameter configuration
Name | Description |
---|---|
configuration: | Fluent parameter configuration |
Returns: Mock |
Fluent configuration builder
Extensions for fluent configuration
Ignores specified mambers during exporting
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsClassAttribute})
Specifies code generator for member
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsInterfaceAttribute})
Specifies code generator for member
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsEnumAttribute})
Specifies code generator for member
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsPropertyAttribute})
Specifies code generator for member
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsFunctionAttribute})
Specifies code generator for member
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.WithCodeGenerator``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsParameterAttribute})
Specifies code generator for member
Adds reference directive to file containing single TS class typing. This method is only used while splitting generated types to different files
Name | Description |
---|---|
configuration: | Configurator |
Name | Description |
----- | ------ |
referenceFile: | Path to referenced file |
Adds reference directive to file containing single TS class typing. This method is only used while splitting generated types to different files
Name | Description |
---|---|
configuration: | Configurator |
Name | Description |
----- | ------ |
referencedType: | Another generated type that should be referenced |
Overrides name of specified member
Name | Description |
---|---|
conf: | Configuration |
Name | Description |
----- | ------ |
name: | Custom name to be used |
Forces member name to be camelCase
Name | Description |
---|---|
conf: | Configuration |
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.DontIncludeToNamespace1(
0,System.Boolean)
Configures exporter dont to export member to corresponding namespace
Configures exporter to export type to specified namespace
Name | Description |
---|---|
conf: | Configuration |
Name | Description |
----- | ------ |
nameSpace: | Namespace name |
Overrides member type name on export with textual string. Beware of using this setting because specified type may not present in your TypeScript code and this will lead to TypeScript compilation errors
Name | Description |
---|---|
conf: | Configurator |
Name | Description |
----- | ------ |
typeName: | TS-friendly type name |
Returns: |
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Type``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsTypedAttributeBase})
Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax.
Name | Description |
---|---|
conf: | Configurator |
Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax.
Name | Description |
---|---|
conf: | Configurator |
Name | Description |
----- | ------ |
type: | Type to override with |
Returns: |
Overrides member type name on export with textual string. Beware of using this setting because specified type may not present in your TypeScript code and this will lead to TypeScript compilation errors. Actually this method does the same as .Type call. Just for your convinence
Name | Description |
---|---|
conf: | Configurator |
Name | Description |
----- | ------ |
typeName: | TS-friendly type name |
Returns: |
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.Returns``1(Reinforced.Typings.Fluent.Interfaces.IExportConfiguration{Reinforced.Typings.Attributes.TsFunctionAttribute})
Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax. Actually this method does the same as .Type call. Just for your convinence
Name | Description |
---|---|
conf: | Configurator |
Overrides member type on export with strong type. Feel free to use delegates here. It is very comfortable instead of regular TS functions syntax. Actually this method does the same as .Type call. Just for your convinence
Name | Description |
---|---|
conf: | Configurator |
Name | Description |
----- | ------ |
type: | Type to override with |
Returns: |
Forces property to be a nullable. When set to true then property will be generated as [property]? : [type] with forcibly added question mark denoting nullable field.
Name | Description |
---|---|
conf: | Configuration |
Name | Description |
----- | ------ |
force: | Force nullable or not |
Sets parameter default value.
Name | Description |
---|---|
conf: | Configuration |
Name | Description |
----- | ------ |
value: | Default value for parameter |
Forces exporter to add I letter as interface prefix.
Name | Description |
---|---|
conf: | Configuration |
Name | Description |
----- | ------ |
auto: | Add I automatically or not |
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.AddReference(Reinforced.Typings.Fluent.ConfigurationBuilder,System.String)
Adds global reference to another typescript library
Name | Description |
---|---|
conf: | Table configurator |
Name | Description |
----- | ------ |
reference: | Full path to .d.ts or .ts file |
Returns: Fluent |
M:Reinforced.Typings.Fluent.TypingsConfigurationExtensions.TryLookupDocumentationForAssembly(Reinforced.Typings.Fluent.ConfigurationBuilder,System.Reflection.Assembly,System.String)
Tries to find documentation .xml file for specified assembly and take it in account when generating documentaion
Name | Description |
---|---|
conf: | Table configurator |
Name | Description |
----- | ------ |
assmbly: | Assembly which documentation should be included |
Name | Description |
----- | ------ |
documentationFileName: | Override XMLDOC file name if differs (please include .xml extension) |
Returns: Fluent |
XMLDOC documentation manager
M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.MemberInfo,Reinforced.Typings.WriterWrapper)
Outputs documentation for class member
Name | Description |
---|---|
member: | Class member |
Name | Description |
----- | ------ |
sw: | Text writer |
M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.MethodInfo,Reinforced.Typings.WriterWrapper)
Outputs documentation for method
Name | Description |
---|---|
method: | Method |
Name | Description |
----- | ------ |
sw: | Text writer |
M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Reflection.ConstructorInfo,Reinforced.Typings.WriterWrapper)
Outputs documentation for constructor
Name | Description |
---|---|
constructor: | Constructor |
Name | Description |
----- | ------ |
sw: | Text writer |
M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteDocumentation(System.Type,Reinforced.Typings.WriterWrapper)
Outputs documentation for type
Name | Description |
---|---|
type: | Type |
Name | Description |
----- | ------ |
sw: | Text writer |
M:Reinforced.Typings.Xmldoc.DocumentationManager.WriteComment(Reinforced.Typings.WriterWrapper,System.String)
Writes output comment with automatic multiline division
Name | Description |
---|---|
sw: | Output writer |
Name | Description |
----- | ------ |
comment: | Comment (multiline allowed) |
TsExport exporting settings
The assemblies to extract typings from. Important! TsExporter do not perform any job for loading assemblies. It is left upon a calling side. That is because loading assemblies is highly dependent on calling side's AppDomain. TsExporter shouldnt handle all this shit
True to create project hierarchy in target folder. False to store generated typings in single file
True to write warning comment about auto-generated to every file. False to do not
Target directory where to store generated typing files. This parameter is not used when Hierarcy is false
Target file where to store generated sources. This parameter is not used when Hierarchy is true
If true, export will be performed in .d.ts manner (only typings, declare module etc). Otherwise, export will be performed to regulat .ts file
Specifies root namespace for hierarchical export. Helps to avoid creating redundant directories when hierarchical export.
Use camelCase for methods naming
Use camelCase for properties naming
Path to assembly's XMLDOC file
Fluent configuration method
Enables or disables documentation generator
Documentation manager
There is a case when you are exporting base class as interface. It may lead to some unusual handling of generation, so I'm using this property to denote such cases and fix it in-place
Default code generator for CLR type (class)
TypeScript code generator interface
M:Reinforced.Typings.Generators.ITsCodeGenerator1.Generate(
0,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Export settings
M:Reinforced.Typings.Generators.ClassCodeGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
M:Reinforced.Typings.Generators.ClassCodeGenerator.Export(System.String,System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports entire class to specified writer
Name | Description |
---|---|
declType: | Declaration type. Used in "export $gt;class< ... " line. This parameter allows switch it to "interface" |
Name | Description |
----- | ------ |
type: | Exporting class type |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportMembers(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports all type members sequentially
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.HandleBaseClassExportingAsInterface(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Here you can customize what to export when base class is class but exporting as interface
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportFields(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports type fields
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportProperties(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports type properties
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportMethods(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports type methods
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.ExportConstructors(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,Reinforced.Typings.Attributes.IAutoexportSwitchAttribute)
Exports type constructors
Name | Description |
---|---|
element: | Type itself |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
swtch: | Pass here type attribute inherited from IAutoexportSwitchAttribute |
M:Reinforced.Typings.Generators.ClassCodeGenerator.GenerateMembers1(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,System.Collections.Generic.IEnumerable{
0})
Exports list of type members
Name | Description |
---|---|
element: | Exporting class |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
members: | Type members to export |
Export settings
Default code generator for constructor
Default typescript code generator for method
M:Reinforced.Typings.Generators.MethodCodeGenerator.GetFunctionNameAndReturnType(System.Reflection.MethodInfo,Reinforced.Typings.TypeResolver,System.String@,System.String@)
Retrieves function name corresponding to method and return type. Fell free to override it.
Name | Description |
---|---|
element: | Method info |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
name: | Resulting method name |
Name | Description |
----- | ------ |
type: | Resulting return type name |
M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteMethodParameters(System.Reflection.MethodBase,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Writes all method's parameters to output writer.
Name | Description |
---|---|
element: | Method info |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
M:Reinforced.Typings.Generators.MethodCodeGenerator.GenerateBody(System.String,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper,System.String)
Writes method body to output writer
Name | Description |
---|---|
returnType: | Method return type |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
content: | Content for non-void body |
M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteFunctionName(System.Boolean,Reinforced.Typings.AccessModifier,System.String,Reinforced.Typings.WriterWrapper,System.Boolean)
Writes method name, accessor and opening brace to output writer
Name | Description |
---|---|
isStatic: | Is method static or not |
Name | Description |
----- | ------ |
accessModifier: | Access modifier for method |
Name | Description |
----- | ------ |
name: | Method name |
Name | Description |
----- | ------ |
sw: | Output writer |
Name | Description |
----- | ------ |
isInterfaceDecl: | Is this method interface declaration or not (access modifiers prohibited on interface declaration methods) |
M:Reinforced.Typings.Generators.MethodCodeGenerator.WriteRestOfDeclaration(System.String,Reinforced.Typings.WriterWrapper)
Writes rest of method declaration to output writer (after formal parameters list)
Name | Description |
---|---|
type: | Returning type name |
Name | Description |
----- | ------ |
sw: | Output writer |
M:Reinforced.Typings.Generators.MethodCodeGenerator.Generate(System.Reflection.MethodInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Export settings
M:Reinforced.Typings.Generators.ConstructorCodeGenerator.Generate(System.Reflection.ConstructorInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Default code generator for enums
M:Reinforced.Typings.Generators.EnumGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Export settings
Default code generator for fields
Default code generator for properties
M:Reinforced.Typings.Generators.PropertyCodeGenerator.Generate(System.Reflection.MemberInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Returns type of specified property. It is useful for overloads sometimes
Name | Description |
---|---|
mi: | Method Info |
Returns: Property info type |
Export settings
That's it - overriden GetType for property since properties and fields are exported to TypeScript almost same way.
Name | Description |
---|---|
mi: | Member info (Fields behind) |
Returns: Field type |
Default code generator for interfaces. Derived from class generator since interfaces are very similar to classes in TypeScript
M:Reinforced.Typings.Generators.InterfaceCodeGenerator.Generate(System.Type,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Default code generator for namespace
M:Reinforced.Typings.Generators.NamespaceCodeGenerator.Generate(System.Collections.Generic.IEnumerable{System.Type},System.String,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Generates namespace source code
Name | Description |
---|---|
types: | Types list |
Name | Description |
----- | ------ |
namespaceName: | Namespace name |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
M:Reinforced.Typings.Generators.NamespaceCodeGenerator.WriteNamespaceBegin(System.String,Reinforced.Typings.WriterWrapper)
Writes to output file opening namespace declaration
Name | Description |
---|---|
namespaceName: | Namespace name |
Name | Description |
----- | ------ |
sw: | Output writer |
M:Reinforced.Typings.Generators.NamespaceCodeGenerator.WriteNamespaceEnd(System.String,Reinforced.Typings.WriterWrapper)
Writes to ouput file namespace closing
Name | Description |
---|---|
namespaceName: | Namespace name |
Name | Description |
----- | ------ |
sw: | Output writer |
Export settings
Default code generator for method parameter
M:Reinforced.Typings.Generators.ParameterCodeGenerator.GetDefaultValue(System.Reflection.ParameterInfo,Reinforced.Typings.Attributes.TsParameterAttribute)
Returns default value for specified parameter info
Name | Description |
---|---|
element: | Parameter info |
Name | Description |
----- | ------ |
attr: | Parameter attribute |
Returns: Serialized to string default value of type that is exposed by mentioned parameter |
M:Reinforced.Typings.Generators.ParameterCodeGenerator.Generate(System.Reflection.ParameterInfo,Reinforced.Typings.TypeResolver,Reinforced.Typings.WriterWrapper)
Main code generator method. This method should write corresponding TypeScript code for element (1st argument) to WriterWrapper (3rd argument) using TypeResolver if necessary
Name | Description |
---|---|
element: | Element code to be generated to output |
Name | Description |
----- | ------ |
resolver: | Type resolver |
Name | Description |
----- | ------ |
sw: | Output writer |
Export settings
Various extensions for settings
M:Reinforced.Typings.Generators.SettingsExtensions.GetDeclarationFormat(Reinforced.Typings.ExportSettings,System.Type)
Returns declaration format for supplied Type (export/declare/nothing)
Name | Description |
---|---|
settings: | Export settings |
Name | Description |
----- | ------ |
element: | Type |
Returns: Declaration format - just supply your compilation unit type and name |
M:Reinforced.Typings.Generators.SettingsExtensions.ConditionallyConvertMethodNameToCamelCase(Reinforced.Typings.ExportSettings,System.String)
Conditionally (based on settings) turns method name to camelCase
Name | Description |
---|---|
settings: | Settings object |
Name | Description |
----- | ------ |
regularName: | Regular method name |
Returns: Method name in camelCase if camelCasing enabled, initial string otherwise |
M:Reinforced.Typings.Generators.SettingsExtensions.ConditionallyConvertPropertyNameToCamelCase(Reinforced.Typings.ExportSettings,System.String)
Conditionally (based on settings) turns property name to camelCase
Name | Description |
---|---|
settings: | Settings object |
Name | Description |
----- | ------ |
regularName: | Regular property name |
Returns: Property name in camelCase if camelCasing enabled, initial string otherwise |
M:Reinforced.Typings.Generators.SettingsExtensions.CamelCaseFromAttribute(System.Reflection.MemberInfo,System.String)
Conditionally (based on attribute setting) turns member name to camelCase
Name | Description |
---|---|
member: | Member |
Name | Description |
----- | ------ |
regularName: | Regular property name |
Returns: Property name in camelCase if camelCasing enabled, initial string otherwise |
M:Reinforced.Typings.Generators.SettingsExtensions.GetSourceAssemblyType(Reinforced.Typings.ExportSettings,System.String)
Retrieves type from source assemblies by name
Name | Description |
---|---|
settings: | Settings |
Name | Description |
----- | ------ |
typeName: | Type name |
Returns: Type (or null) |
Facade for final TypeScript export. This class supplies assemblies names or assemblies itself as parameter and exports resulting TypeScript file to file or to string
Constructs new instance of TypeScript exporter
Name | Description |
---|---|
settings: |
Exports TypeScript source to specified TextWriter according to settings
Name | Description |
---|---|
sw: | TextWriter |
Exports TypeScript source according to settings
Exports TypeScript source to string
Returns: String containig generated TypeScript source for specified assemblies
Useful extensions for reflection
Binding flags for searching all members
Determines is type derived from Nullable or not
Name | Description |
---|---|
t: | Type |
Returns: True if type is nullable value type. False otherwise |
Retrieves first type argument of type
Name | Description |
---|---|
t: | Type |
Returns: First type argument |
Determines if type is Dictionary-like
Name | Description |
---|---|
t: | Type |
Returns: True if type is derived from dictionary type |
Determines if type is enumerable regardless of generic spec
Name | Description |
---|---|
t: | Type |
Returns: True if type is enumerable (incl. array type). False otherwise. |
Determines if supplied type is non-generic enumerable
Name | Description |
---|---|
t: | Type |
Returns: True if supplied type is nongeneric enumerable. False otherwise |
Determines should type be exported as interface or not
Name | Description |
---|---|
t: | Type |
Returns: True, if supplied type should be exported as interface. False otherwise |
Determines if type member should be ignored for translation using corresponding Typings attribute
Name | Description |
---|---|
t: | Type member info |
Returns: True if type member should be ignored, false otherwise |
Determines if parameter should be ignored for translation using corresponding Typings attribute
Name | Description |
---|---|
t: | Parameter info |
Returns: True if parameter should be ignored, false otherwise |
Removes generics postfix (all text after '`') from typename
Name | Description |
---|---|
t: | Type |
Returns: Clean, genericless name |
Retrieves parameter name from corresponding attribute. If attribute not present then takes parameter name via reflection
Name | Description |
---|---|
element: | Parameter info |
Returns: Parameter name |
Determines if supplied type is delegate type
Name | Description |
---|---|
t: | Type |
Returns: True, if supplied type is delegate, false otherwise |
Retrieves type name from type itself or from corresponding Reinforced.Typings attribute
Name | Description |
---|---|
t: | Type |
Returns: Type name |
Retrieves type namespace from type itself or from corresponding Typings attribute
Name | Description |
---|---|
t: | Type |
Name | Description |
----- | ------ |
distinguishAutoTypes: | Forces GetNamespace to return "-" for interfaces with IncludeInterface = false and null for anonymous types |
Returns: Full-qualified namespace name |
Returns access modifier for specified field
Name | Description |
---|---|
fieldInfo: | Field |
Returns: Access modifier string |
Returns access modifier for specified method
Name | Description |
---|---|
methodInfo: | Method |
Returns: Access modifier string |
Returns access modifier for specified constructor
Name | Description |
---|---|
constructorInfo: | Constructor |
Returns: Access modifier string |
Returns access modifier for specified constructor
Name | Description |
---|---|
propertyInfo: | Property |
Returns: Access modifier string |
Returns access modifier for specified type member
Name | Description |
---|---|
member: | Type member |
Returns: Access modifier string |
Determines if propercy is "bounced". It means property with different accesor's access level
Name | Description |
---|---|
propertyInfo: | Property |
Returns: True if property has different access levels for accessor |
Converts AccessModifier to corresponding TypeScript source text
Name | Description |
---|---|
modifier: | Access modifier |
Returns: Access modifier text |
Converts AccessModifier to corresponding TypeScript source text
Name | Description |
---|---|
modifier: | Access modifier |
Returns: Access modifier text |
Search predicate to exclude ignored and compiler-generated items
Type resolver. It is helper class to convert source types, members and parameter names to typescript ones
Constructs new type resolver
Reteieves code generator instance for specified type member. Also this method considers Typings attribute and instantiates generator specified there if necessary
Name | Description |
---|---|
member: | Type member info |
Name | Description |
----- | ------ |
settings: | Export settings |
Returns: Code generator for specified type member |
M:Reinforced.Typings.TypeResolver.GeneratorFor(System.Reflection.ParameterInfo,Reinforced.Typings.ExportSettings)
Retrieves code generator for ParameterInfo (since ParameterInfo does not derive from MemberInfo). Also this method considers Typings attribute and instantiates generator specified there if necessary
Name | Description |
---|---|
member: | Parameter info |
Name | Description |
----- | ------ |
settings: | Export settings |
Returns: Code generator for parameter info |
Retrieves code generator for specified type Also this method considers Typings attribute and instantiates generator specified there if necessary
Name | Description |
---|---|
member: | Type info |
Name | Description |
----- | ------ |
settings: | Export settings |
Returns: Code generator for specified type |
Retrieves code generator for namespaces
Returns:
Returns typescript-friendly type name for specified type. This method successfully handles dictionaries, IEnumerables, arrays, another TsExport-ed types, void, delegates, most of CLR built-in types, parametrized types etc. It also considers Ts*-attributes while resolving type names If it cannot handle anything then it will return "any"
Name | Description |
---|---|
t: | Specified type |
Returns: Typescript-friendly type name |