New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codegateinc/react-form-builder-v2

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codegateinc/react-form-builder-v2 - npm Package Compare versions

Comparing version 1.2.10 to 1.2.11

12

index.d.ts

@@ -1,3 +0,1 @@

import { GateField } from './src/main/types'
type VoidFunction = () => void

@@ -42,3 +40,3 @@

type UseFormReturn<T> = {
form: {[K in keyof T]: T[K]},
form: T,
hasError: boolean,

@@ -53,3 +51,3 @@ isFilled: boolean,

setFieldInitialValue(field: string, value: any): void,
addFields(fields: Array<Field>): void,
addFields(fields: Array<Field<any>>): void,
removeFieldIds(fields: Array<string>)

@@ -59,8 +57,8 @@ }

type FormGateCallbacks<T> = {
onSuccess(form: {[K in keyof T]: T[K] extends GateField<infer F> ? F : never}): void,
onSuccess(form: {[K in keyof T]: T[K] extends Field<infer F> ? F : never}): void,
onError?(form: Record<keyof T, string>): void
}
declare function useForm<T extends Record<PropertyKey, GateField<any>>>(
formFields: Record<keyof T, Field<any>>,
declare function useForm<T extends Record<PropertyKey, Field<any>>>(
formFields: T,
callbacks: FormGateCallbacks<T>

@@ -67,0 +65,0 @@ ): UseFormReturn<T>

@@ -6,3 +6,3 @@ {

"typings": "index.d.ts",
"version": "1.2.10",
"version": "1.2.11",
"main": "dist/index.js",

@@ -9,0 +9,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc