Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

Customization

cskeppstedt edited this page Nov 16, 2012 · 3 revisions

The attribute TypeScriptInterfaceAttribute is set on C# classes, and has the following properties:

  • Name: Specifies the name of the interface (default is the class name).
  • Module: Specifies the module of the interface. Falls back to the default module name, see Default settings.

The attribute TypeScriptMemberAttribute can be set on the properties of a C# class, and has the following properties:

  • Name: Specifies the name of the member (default is the property name).
  • Optional: Specifies whether this member should be optional, ie. member?: type instead of member: type. Falls back to the default Optional value, see Default settings.
  • Type: Specifies the type of the member (default is to do type translation of the property, see Specifications).
Clone this wiki locally