Socket
Socket
Sign inDemoInstall

6pp

Package Overview
Dependencies
3
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc