create-context-helper
Advanced tools
+7
-3
@@ -1,8 +0,12 @@ | ||
| import React from 'react'; | ||
| import React, { ReactNode } from 'react'; | ||
| declare const createContextHelper: <ContextType, ProviderProps extends Partial<ContextType> = Partial<ContextType>>(prefix: string, defaultValue: ContextType) => [React.FC<ProviderProps>, () => ContextType, React.Context<ContextType>]; | ||
| declare const createContextHelper: <ContextType, ProviderProps extends Partial<ContextType> = Partial<ContextType>>(prefix: string, defaultValue: ContextType) => [React.FC<ProviderProps & { | ||
| children?: ReactNode; | ||
| }>, () => ContextType, React.Context<ContextType>]; | ||
| declare const createAtomicContextHelper: <ContextType extends { | ||
| [s: string]: any; | ||
| }, ProviderProps extends Partial<ContextType> = Partial<ContextType>, K extends keyof ContextType = keyof ContextType>(prefix: string, defaultValue: ContextType) => [React.FC<ProviderProps>, <T extends K[] = K[]>(selector?: T | undefined) => Pick<ContextType, T[number]>, Record<keyof ContextType, React.Context<ContextType[string]>>]; | ||
| }, ProviderProps extends Partial<ContextType> = Partial<ContextType>, K extends keyof ContextType = keyof ContextType>(prefix: string, defaultValue: ContextType) => [React.FC<ProviderProps & { | ||
| children?: ReactNode; | ||
| }>, <T extends K[] = K[]>(selector?: T | undefined) => Pick<ContextType, T[number]>, Record<keyof ContextType, React.Context<ContextType[string]>>]; | ||
| export { createAtomicContextHelper, createContextHelper }; |
+1
-1
| { | ||
| "name": "create-context-helper", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "Create react context helper without painless", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
15148
0.52%233
1.3%1
Infinity%