Skip to content

Instantly share code, notes, and snippets.

@anubra266
Created May 13, 2021 13:39
Show Gist options
  • Save anubra266/cf57e641a0650e00e44d142f19d69a12 to your computer and use it in GitHub Desktop.
Save anubra266/cf57e641a0650e00e44d142f19d69a12 to your computer and use it in GitHub Desktop.
Generic answer
interface FormProps<T extends Record<string, any>> {
  initialValues: T;
  children: (fields: T) => any
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment