Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Refactor(type): enhance the type of "controller" #161

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curvy-phones-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-cool-form": patch
---

refactor(type): enhance the type of `controller`
4 changes: 2 additions & 2 deletions src/types/react-cool-form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ declare module "react-cool-form" {
(event: E): R;
}

export interface Format {
(value: any): any;
export interface Format<V = any, R = any> {
(value: V): R;
}

export interface OnChange<E = any> {
Expand Down