Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Jaysvcutil enhancements #289

Open
raveclassic opened this issue Mar 29, 2017 · 1 comment
Open

Jaysvcutil enhancements #289

raveclassic opened this issue Mar 29, 2017 · 1 comment

Comments

@raveclassic
Copy link

raveclassic commented Mar 29, 2017

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.Qeuryable is missing some methods. One of them is withInlineCount. Also seems like length and count duplicate each other.
  • $data is a module but could be a namespace to allow TS namespace merging so that one could extend base EntitySet/Queryable classes. For example it is possible to fix Queryable with:
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.ts file templates for generation. Currenly its JayData.src in jaydata-dynamic-metadata/src/dts.ts
@ogrim
Copy link

ogrim commented Apr 30, 2017

Is this the source you are looking for? https://github.com/jaystack/jaysvcutil

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants