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.16%)
Shell (0.01%)
Total Downloads
10,154
Last Day
1
Last Week
8
Last Month
23
Last Year
279
NOASSERTION License
49,703 Stars
89,362 Commits
30,386 Forks
640 Watchers
6 Branches
9,955 Contributors
Updated on May 09, 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%
1
Compared to previous day
Last Week
-11.1%
8
Compared to previous week
Last Month
109.1%
23
Compared to previous month
Last Year
-87.4%
279
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
all changesets reviewed
Reason
30 commit(s) and 0 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
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-05-05
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