Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with TypeScript declaration files

    Hello,
    there is an inherent problem in .d.ts file you supply. In some (many?) cases type of properties/parameters are stated to be full object instead of partial object. Example:

    SelectItem, property pickListProperties is stated to be isc.ListGrid while it obviously should be Partial<isc.ListGrid>
    DaraSource, method processResponse, dsResponse is stated to be DSResponse, while it should be Partial<DSResponse> (because we only required to pass JSON with clientContext set, not an instantiated instance of DSResponse class)

    There are many more examples of this deficiency. This greatly affects our ability to write proper code in TypeScript working with SmartClient.

    #2
    Hello Isomorphic,
    can you please respond to this request?

    Comment


      #3
      Looks like you're right - taking a closer look now. Thanks for your patience!

      Comment


        #4
        Ok, this will be fixed in the next nightly 'p' build - which should be dated Jan 22 (or newer)

        Comment


          #5
          Thanks for your response!
          Are you fixing those specific cases I've mentioned or cross-board? Hope to get a generic solution for this problem!

          Comment


            #6
            Not just those specific cases...it's as general fix!

            Comment

            Working...
            X