Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

seapig

Package Overview
Dependencies
Maintainers
13
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seapig - npm Package Compare versions

Comparing version
1.0.3
to
1.1.0
+30
index.d.ts
declare module 'seapig' {
import { ReactNode } from 'react';
interface ValidationConfiguration {
min?: number;
max?: number;
}
interface Schema {
[key: string]: ValidationConfiguration;
}
interface Result {
[key: string]: ReactNode;
rest: ReactNode;
}
export default function seapig(
children?: ReactNode | null,
schema?: Schema,
): Result;
export const OPTIONAL: ValidationConfiguration;
export const OPTIONALS: ValidationConfiguration;
export const REQUIRED: ValidationConfiguration;
export const REQUIREDS: ValidationConfiguration;
}
+4
-3
{
"name": "seapig",
"version": "1.0.3",
"version": "1.1.0",
"description": "Utility for generalized composition of React components.",

@@ -45,3 +45,4 @@ "main": "dist/index.js",

"es",
"dist"
"dist",
"index.d.ts"
],

@@ -65,3 +66,3 @@ "author": "Nemanja Stojanovic <me@nem035.com>",

"eslint-plugin-react": "^7.12.4",
"flow-bin": "^0.129.0",
"flow-bin": "^0.131.0",
"jest-cli": "^26.0.1",

@@ -68,0 +69,0 @@ "pre-commit": "^1.2.2",