+30
| 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", |
27711
2.28%6
20%211
11.64%