Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

create-context-helper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-context-helper - npm Package Compare versions

Comparing version
0.1.4
to
0.1.5
+7
-3
dist/index.d.ts

@@ -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 };
{
"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",