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

Latest commit

 

History

History
11 lines (8 loc) · 333 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 333 Bytes

Scaleway Form

Contribute

Add a validator

  • Create a file under src/validators/ folder
  • Export a default function with a type : (arg: unknown) => ValidatorObject
  • Export it into src/validators/index.ts
  • Add the key into the ValidatorProps type in src/types.ts
  • Add tests into src/validators/__tests__ folder