Gathering detailed insights and metrics for @types/react-component-benchmark
Gathering detailed insights and metrics for @types/react-component-benchmark
Gathering detailed insights and metrics for @types/react-component-benchmark
Gathering detailed insights and metrics for @types/react-component-benchmark
The repository for high quality TypeScript type definitions.
npm install @types/react-component-benchmark
Typescript
Module System
66.4
Supply Chain
88.5
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
10,162
Last Day
2
Last Week
3
Last Month
17
Last Year
274
NOASSERTION License
49,989 Stars
89,687 Commits
30,434 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 03, 2025
Latest Version
1.0.3
Package Id
@types/react-component-benchmark@1.0.3
Unpacked Size
5.15 kB
Size
1.92 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
-25%
3
Compared to previous week
Last Month
13.3%
17
Compared to previous month
Last Year
-85.4%
274
Compared to previous year
1
npm install --save @types/react-component-benchmark
This package contains type definitions for react-component-benchmark (https://github.com/paularmstrong/react-component-benchmark).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-component-benchmark.
1import { ComponentType, ForwardRefExoticComponent, RefAttributes } from "react"; 2 3export const BenchmarkType: { 4 MOUNT: "mount"; 5 UPDATE: "update"; 6 UNMOUNT: "unmount"; 7}; 8 9export interface Sample { 10 start: number; 11 end: number; 12 elapsed: number; 13 layout: number; 14} 15 16export interface ComputedResult { 17 max: number; 18 min: number; 19 median: number; 20 mean: number; 21 stdDev: number; 22 p70: number; 23 p95: number; 24 p99: number; 25} 26 27export interface BenchResultsType extends ComputedResult { 28 startTime: number; 29 endTime: number; 30 runTime: number; 31 sampleCount: number; 32 samples: Sample[]; 33 layout?: ComputedResult; 34} 35 36export interface BenchmarkProps { 37 component: ComponentType<any>; 38 componentProps?: Record<string, unknown>; 39 /** Default is `false`. */ 40 includeLayout?: boolean; 41 onComplete: (res: BenchResultsType) => void; 42 samples: number; 43 /** Default is `10000`. */ 44 timeout?: number; 45 /** Default is `BenchmarkType.MOUNT`. */ 46 type?: typeof BenchmarkType[keyof typeof BenchmarkType]; 47} 48 49export interface BenchmarkRef { 50 start: () => void; 51} 52 53declare const Benchmark: ForwardRefExoticComponent<BenchmarkProps & RefAttributes<BenchmarkRef>>; 54 55export default Benchmark; 56
These definitions were written by Yi Fan.
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