@fiori/types
v2.0.15
Published
This package is a part of [Fiori Tools Extensions](https://www.npmjs.com/package/fiori-tools) project which is set of plugins working on top of [SAP Fiori Tools](https://www.npmjs.com/package/@sap/ux-ui5-tooling) or [UI5 server](https://www.npmjs.com/pack
Downloads
13
Readme
UI5 Middleware types
This package is a part of Fiori Tools Extensions project which is set of plugins working on top of SAP Fiori Tools or UI5 server
Currently it allows to define ui5 middleware with default types:
import { UI5_Middleware } from '@fiori/types';
interface Input {
foo?: string;
bar?: string;
}
export const yourMiddleware: UI5_Middleware<Input> = function (input) {
return (req, res, next) => {
// do something
next();
};
};
export default yourMiddleware;
Open issues
Currently it's using types declared in open-ux-tools project developed by SAP, and I'd really wish that those types may become also usable directly via npm package soon. The issue has been created for this feature request. Once that package is available may be there will be no need in this package too.