I am using transport.cache for in-memory caching as described here: http://www.telerik.com/forums/query-caching#wDRMJ8_URkaUjJjENfnBcQ
I am converting my existing JavaScript to TypeScript, and here is the code I am using.
var
dataSource =
new
kendo.data.DataSource({
type:
"webapi"
,
transport: {
read:
"../api/companies/"
,
cache:
"inmemory"
},
schema: {
data:
"data"
,
total:
"total"
,
errors:
"errors"
}
});
TypeScript won't compile the code because the cache property is not included in the DataSourceTransport interface. Is this something that can be fixed? If there is a different way I should be going about this, please advise. For now, I've just modified my local copy of the definition file.
Thanks,
Joel