Gathering detailed insights and metrics for @types/koa-compose
Gathering detailed insights and metrics for @types/koa-compose
Gathering detailed insights and metrics for @types/koa-compose
Gathering detailed insights and metrics for @types/koa-compose
The repository for high quality TypeScript type definitions.
npm install @types/koa-compose
Typescript
Module System
99.6
Supply Chain
93.3
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
416,290,959
Last Day
87,351
Last Week
1,995,331
Last Month
8,709,592
Last Year
96,518,622
NOASSERTION License
49,996 Stars
89,698 Commits
30,434 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 04, 2025
Latest Version
3.2.8
Package Id
@types/koa-compose@3.2.8
Unpacked Size
7.55 kB
Size
1.90 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
-8.1%
87,351
Compared to previous day
Last Week
-7.9%
1,995,331
Compared to previous week
Last Month
0.9%
8,709,592
Compared to previous month
Last Year
22.1%
96,518,622
Compared to previous year
1
npm install --save @types/koa-compose
This package contains type definitions for koa-compose (https://github.com/koajs/compose).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compose.
1import * as Koa from "koa"; 2 3declare function compose<T1, U1, T2, U2>( 4 middleware: [Koa.Middleware<T1, U1>, Koa.Middleware<T2, U2>], 5): Koa.Middleware<T1 & T2, U1 & U2>; 6 7declare function compose<T1, U1, T2, U2, T3, U3>( 8 middleware: [Koa.Middleware<T1, U1>, Koa.Middleware<T2, U2>, Koa.Middleware<T3, U3>], 9): Koa.Middleware<T1 & T2 & T3, U1 & U2 & U3>; 10 11declare function compose<T1, U1, T2, U2, T3, U3, T4, U4>( 12 middleware: [Koa.Middleware<T1, U1>, Koa.Middleware<T2, U2>, Koa.Middleware<T3, U3>, Koa.Middleware<T4, U4>], 13): Koa.Middleware<T1 & T2 & T3 & T4, U1 & U2 & U3 & U4>; 14 15declare function compose<T1, U1, T2, U2, T3, U3, T4, U4, T5, U5>( 16 middleware: [ 17 Koa.Middleware<T1, U1>, 18 Koa.Middleware<T2, U2>, 19 Koa.Middleware<T3, U3>, 20 Koa.Middleware<T4, U4>, 21 Koa.Middleware<T5, U5>, 22 ], 23): Koa.Middleware<T1 & T2 & T3 & T4 & T5, U1 & U2 & U3 & U4 & U5>; 24 25declare function compose<T1, U1, T2, U2, T3, U3, T4, U4, T5, U5, T6, U6>( 26 middleware: [ 27 Koa.Middleware<T1, U1>, 28 Koa.Middleware<T2, U2>, 29 Koa.Middleware<T3, U3>, 30 Koa.Middleware<T4, U4>, 31 Koa.Middleware<T5, U5>, 32 Koa.Middleware<T6, U6>, 33 ], 34): Koa.Middleware<T1 & T2 & T3 & T4 & T5 & T6, U1 & U2 & U3 & U4 & U5 & U6>; 35 36declare function compose<T1, U1, T2, U2, T3, U3, T4, U4, T5, U5, T6, U6, T7, U7>( 37 middleware: [ 38 Koa.Middleware<T1, U1>, 39 Koa.Middleware<T2, U2>, 40 Koa.Middleware<T3, U3>, 41 Koa.Middleware<T4, U4>, 42 Koa.Middleware<T5, U5>, 43 Koa.Middleware<T6, U6>, 44 Koa.Middleware<T7, U7>, 45 ], 46): Koa.Middleware<T1 & T2 & T3 & T4 & T5 & T6 & T7, U1 & U2 & U3 & U4 & U5 & U6 & U7>; 47 48declare function compose<T1, U1, T2, U2, T3, U3, T4, U4, T5, U5, T6, U6, T7, U7, T8, U8>( 49 middleware: [ 50 Koa.Middleware<T1, U1>, 51 Koa.Middleware<T2, U2>, 52 Koa.Middleware<T3, U3>, 53 Koa.Middleware<T4, U4>, 54 Koa.Middleware<T5, U5>, 55 Koa.Middleware<T6, U6>, 56 Koa.Middleware<T7, U7>, 57 Koa.Middleware<T8, U8>, 58 ], 59): Koa.Middleware<T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8, U1 & U2 & U3 & U4 & U5 & U6 & U7 & U8>; 60 61declare function compose<T>(middleware: Array<compose.Middleware<T>>): compose.ComposedMiddleware<T>; 62 63declare namespace compose { 64 type Middleware<T> = (context: T, next: Koa.Next) => any; 65 type ComposedMiddleware<T> = (context: T, next?: Koa.Next) => Promise<void>; 66} 67 68export = compose; 69
These definitions were written by jKey Lu, and Anton Astashov.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More