Gathering detailed insights and metrics for @types/makeerror
Gathering detailed insights and metrics for @types/makeerror
Gathering detailed insights and metrics for @types/makeerror
Gathering detailed insights and metrics for @types/makeerror
The repository for high quality TypeScript type definitions.
npm install @types/makeerror
Typescript
Module System
88.2
Supply Chain
84
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
911,260
Last Day
1,061
Last Week
13,027
Last Month
59,159
Last Year
504,975
NOASSERTION License
50,001 Stars
89,698 Commits
30,431 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 06, 2025
Latest Version
1.0.3
Package Id
@types/makeerror@1.0.3
Unpacked Size
5.55 kB
Size
1.86 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
-14.6%
1,061
Compared to previous day
Last Week
-13.8%
13,027
Compared to previous week
Last Month
24.7%
59,159
Compared to previous month
Last Year
24.3%
504,975
Compared to previous year
npm install --save @types/makeerror
This package contains type definitions for makeerror (https://github.com/daaku/nodejs-makeerror#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/makeerror.
1export = makeError; 2 3declare function makeError<T extends makeError.DefaultData>( 4 name: string, 5 defaultMessage?: string, 6 defaultData?: T, 7): makeError.CustomErrorConstructor<T>; 8 9declare namespace makeError { 10 type DefaultData = Record<string, unknown> & { proto?: CustomError<Record<string, unknown>> }; 11 12 interface CustomErrorConstructor<T extends Record<string, unknown>> { 13 new<U, V>( 14 message?: U extends Record<string, unknown> ? U : string, 15 data?: V extends Record<string, unknown> ? V : never, 16 ): U extends Record<string, unknown> ? V extends Record<string, unknown> ? CustomError<V> 17 : CustomError<U> 18 : V extends Record<string, unknown> ? CustomError<V> 19 : CustomError<T>; 20 21 <U, V>( 22 message?: U extends Record<string, unknown> ? U : string, 23 data?: V extends Record<string, unknown> ? V : never, 24 ): U extends Record<string, unknown> ? V extends Record<string, unknown> ? CustomError<V> 25 : CustomError<U> 26 : V extends Record<string, unknown> ? CustomError<V> 27 : CustomError<T>; 28 29 readonly prototype: "proto" extends keyof T ? T["proto"] : BaseError; 30 } 31 32 interface CustomError<T extends Record<string, unknown>> extends BaseError { 33 data: DataObject<T>; 34 fileName?: string; 35 lineNumber?: number; 36 } 37} 38 39type DataObject<T extends Record<string, unknown>> = { 40 [P in keyof T as Exclude<P, "proto">]: T[P]; 41}; 42 43interface BaseError extends Error { 44 toString(): string; 45} 46
These definitions were written by yutak23.
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