🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

6pp

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

6pp - npm Package Compare versions

Comparing version

to
1.1.0

44

index.d.ts
import { PaginationButtonType } from "./src/types";
import { useFetchData } from "./src/hooks/useFetchData";
import {
CSSProperties,
ComponentType,
Dispatch,
ReactNode,
SetStateAction,
} from "react";
import { Pagination } from "./src/components/PaginationWithCount";
declare module "6pp" {
export const useFetchData: <T>(
url: string,
key: string,
dependencyProps?: (string | number | boolean)[]
) => {
data: T | null;
loading: boolean;
error: string;
refetch: () => void;
clearCache: () => void;
};
export type PaginationButtonType = ComponentType<{
children: ReactNode;
onClick: () => void;
style?: CSSProperties;
}>;
type PaginationProps = {
totalPages: number;
currPage: number;
setCurrPage: Dispatch<SetStateAction<number>>;
Button?: PaginationButtonType;
Container?: ComponentType<{ children: ReactNode }>;
activeButtonStyle?: CSSProperties;
};
export const Pagination: ({
totalPages,
currPage,
setCurrPage,
activeButtonStyle,
Button,
Container,
}: PaginationProps) => React.JSX.Element;
export { PaginationButtonType, useFetchData, Pagination };
}

2

package.json
{
"name": "6pp",
"version": "1.0.9",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/bundle.js",