Functions

The following functions are available globally.

  • Helper function that transforms a (deprecated) middleware into a logically equivalent interceptor. This method can be used to keep old middleware working on the new Katana.

    Declaration

    Swift

    public func middlewareToInterceptor(_ middleware: @escaping StoreMiddleware) -> StoreInterceptor

    Parameters

    middleware

    the middleware to transform

    Return Value

    a logically equivalent interceptor