Announcement

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

  • SmartClient.d.ts problems

    Hello,
    we're attempting to work with SmartClient in a strongly typed form using smartclient.d.ts file supplied in v12. We've encountered some problem though:

    The cases where type of argument is "whatever properties" is translated into "whatever" instead of Partial<whatever>. See "processResponse"method of DataSource for instance. Parameter:

    // param requestId (string) requestId attribute from the associated dataSource request object
    // param dsResponse (DSResponse properties) Configuration for the dsResponse
    processResponse : function (requestId, dsResponse)

    is translated into

    transformResponse(
    dsResponse: DSResponse,
    dsRequest: DSRequest,
    data: XMLDocument | JSON
    ): DSResponse;

    instead of

    transformResponse(
    dsResponse: Partial<DSResponse>,
    dsRequest: DSRequest,
    data: XMLDocument | JSON
    ): DSResponse;


    How can this be addressed?
    Last edited by nick.shrayer.2; 3rd Sep 2019, 06:28.
Working...
X