<commit_before>import { ExpressMiddleware } from './express-middleware.interface';

export type AsyncExpressMiddleware = Promise<ExpressMiddleware>;
export interface NestMiddleware {
  resolve(
    ...args
  ):
    | ExpressMiddleware
    | AsyncExpressMiddleware
    | Promise<AsyncExpressMiddleware>;
}<commit_msg>bugfix(@nestjs/common) fix NestMiddleware interface<commit_after>export type MiddlewareFunction = (req, res, next) => any | Promise<any>;
export interface NestMiddleware {
  resolve(...args): MiddlewareFunction | Promise<MiddlewareFunction>;
}
{'fraction_non_alphanumeric': 0.1073345259391771, 'fraction_numerical': 0.0, 'mean_word_length': 5.91358024691358, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7319958', 'n_tokens_mistral': 142, 'n_tokens_neox': 146, 'n_words': 33}