Gathering detailed insights and metrics for @types/use-subscription
Gathering detailed insights and metrics for @types/use-subscription
Gathering detailed insights and metrics for @types/use-subscription
Gathering detailed insights and metrics for @types/use-subscription
The repository for high quality TypeScript type definitions.
npm install @types/use-subscription
Typescript
Module System
94.5
Supply Chain
66.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
12,735,849
Last Day
3,344
Last Week
21,647
Last Month
79,570
Last Year
1,113,940
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.2
Package Id
@types/use-subscription@1.0.2
Unpacked Size
3.48 kB
Size
1.67 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
8.8%
3,344
Compared to previous day
Last Week
15%
21,647
Compared to previous week
Last Month
-16.6%
79,570
Compared to previous month
Last Year
-72%
1,113,940
Compared to previous year
npm install --save @types/use-subscription
This package contains type definitions for use-subscription (https://github.com/facebook/react/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/use-subscription.
1export type Unsubscribe = () => void; 2 3export interface Subscription<T> { 4 /** 5 * (Synchronously) returns the current value of our subscription. 6 */ 7 getCurrentValue: () => T; 8 /** 9 * This function is passed an event handler to attach to the subscription. 10 * It must return an unsubscribe function that removes the handler. 11 */ 12 subscribe: (callback: () => void) => Unsubscribe; 13} 14 15export function useSubscription<T>(subscription: Subscription<T>): T; 16
These definitions were written by Sebastian Silbermann.
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