This repository was archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Jaysvcutil enhancementsΒ #289
Copy link
Copy link
Open
Description
Thanks for such a great utility first!
Unfortunately I cannot find the source here, so there's no way to open a PR for impromevents.
Here are some of them:
$data.Qeuryableis missing some methods. One of them iswithInlineCount. Also seems likelengthandcountduplicate each other.$datais a module but could be a namespace to allow TS namespace merging so that one could extend baseEntitySet/Queryableclasses. For example it is possible to fixQueryablewith:
import * as base from './context';
declare module './context' {
namespace $data {
interface Queryable<T extends base.$data.Entity | base.Edm.Primitive> {
withInlineCount(this: Queryable<T>): this;
withCount(this: Queryable<T>): this;
}
}
}But it is only possible when manually replacing module by namespace in generated ./context.d.ts file.
- It would be extremely useful to allow custom
.d.tsfile templates for generation. Currenly itsJayData.srcinjaydata-dynamic-metadata/src/dts.ts
jcannata
Metadata
Metadata
Assignees
Labels
No labels