2.0.15 • Published 10 months ago

@fiori/types v2.0.15

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

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.

2.0.15

10 months ago

2.0.13

10 months ago

2.0.11

10 months ago

2.0.10

10 months ago

2.0.7

10 months ago

2.0.6

10 months ago