Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3185

typedef is ignored in d.ts files for TypeScript.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.2
    • None
    • JavaScript - Compiler
    • None

    Description

      TypeScript support is very valuable for us.

      But, currently d.ts files for TypeScript does not include any info on typedefs defined in IDLs.

      For example, we have foo.idl like this.
      typedef string userID
      struct Foo

      {1: userID s }

      Currently this is compiled into foo.d.ts like this.

      declare class Foo

      { s: string; }

      I should be like this, or we have to use string instead of meaningfull userID.

      declare type userID = string;
      declare class Foo

      { s: userID; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            hirano-s@aist.go.jp HIRANO Satoshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: