DefinitelyTyped/types/swagger-ui-dist/absolute-path.d.ts
Piotr Błażejewicz (Peter Blazejewicz) 18204efa01
🤖 Merge PR #46358 update(swagger-ui-dist): update module detail and minor version bump by @peterblazejewicz
This commit tries to correct the module definition to match actual shape
of the module:
- direct access to exported absolute path function
- namespace based access from main module
- minor version bump (3.30)
- maintainer added
- minor cleanup

This change should be bacward compatible with pre-existin client code.

https://github.com/swagger-api/swagger-ui/blob/master/swagger-ui-dist-package/absolute-path.js
https://github.com/swagger-api/swagger-ui/blob/master/swagger-ui-dist-package/index.js
https://www.npmjs.com/package/swagger-ui-dist

Thanks!
2020-07-28 14:08:56 -04:00

9 lines
266 B
TypeScript

/*
* getAbsoluteFSPath
* @return When run in NodeJS env, returns the absolute path to the current directory
* When run outside of NodeJS, will return an error message
*/
declare function getAbsoluteFSPath(): string;
export = getAbsoluteFSPath;