Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add typescript definition #39

Open
abenhamdine opened this issue May 26, 2017 · 0 comments
Open

Please add typescript definition #39

abenhamdine opened this issue May 26, 2017 · 0 comments

Comments

@abenhamdine
Copy link

abenhamdine commented May 26, 2017

It would be cool to have ts definition for direct configuration :)

Here is my own interface, but properties could be optional too :

export interface ExtDirectConfig {
	/** Namespace in which server will be accessible from client side. Ex : 'Server' */
	rootNamespace: string,
	/** Support method discovery without `function` keyword. */
	ES6: boolean,
	/** API Name */
	apiName: string,
	/** URL to retrieve API configuration. Ex : '/directapi' */
	apiUrl: string,
	/** ,  URL to call Direct methods : ex "/direct" */
	classRouteUrl: string
	/** Direct class location in filesystem relative to the server directory : ex : '/direct', */
	classPath: string,
	/** Hosting server name. Ex : 'localhost' */
	server: string,
	/**  Hosting server port. Ex : "3000" */
	port: string,
	protocol: 'http' | 'https',
	/** Operation timeout. Default : 30000 */
	timeout: number,
	/** Set true to cache API's for production. During development setting to false will allow to make any changes and access API's without server reload */
	cacheAPI: boolean,
	/** Use relative URL's */
	relativeUrl: boolean,
	/** If true, will append req and res objects to method call */
	appendRequestResponseObjects: boolean,
	/** Metadata support */
	enableMetadata: boolean,
	/** Automatically append success true|false */
	responseHelper: boolean,
	/** Enable Helpers to have methods before and after API discovery as well as before and after Transaction batch */
	enableProcessors: boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant