-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
190 additions
and
631 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
apps/docs/api/starter-kitty-validators.createemailschema.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@opengovsg/starter-kitty-validators](./starter-kitty-validators.md) > [createEmailSchema](./starter-kitty-validators.createemailschema.md) | ||
|
||
## createEmailSchema() function | ||
|
||
Create a schema that validates emails against RFC 5322 and a whitelist of domains. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
createEmailSchema: (options?: EmailValidatorOptions) => ZodSchema<string> | ||
``` | ||
|
||
## Parameters | ||
|
||
<table><thead><tr><th> | ||
|
||
Parameter | ||
|
||
|
||
</th><th> | ||
|
||
Type | ||
|
||
|
||
</th><th> | ||
|
||
Description | ||
|
||
|
||
</th></tr></thead> | ||
<tbody><tr><td> | ||
|
||
options | ||
|
||
|
||
</td><td> | ||
|
||
[EmailValidatorOptions](./starter-kitty-validators.emailvalidatoroptions.md) | ||
|
||
|
||
</td><td> | ||
|
||
_(Optional)_ The options to use for validation | ||
|
||
|
||
</td></tr> | ||
</tbody></table> | ||
**Returns:** | ||
|
||
ZodSchema<string> | ||
|
||
A Zod schema that validates emails according to the provided options | ||
|
||
## Exceptions | ||
|
||
[OptionsError](./starter-kitty-validators.optionserror.md) If the options are invalid | ||
|
47 changes: 0 additions & 47 deletions
47
apps/docs/api/starter-kitty-validators.emailvalidationerror._constructor_.md
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
apps/docs/api/starter-kitty-validators.emailvalidationerror.md
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
apps/docs/api/starter-kitty-validators.emailvalidator._constructor_.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
apps/docs/api/starter-kitty-validators.emailvalidator.parse.md
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
apps/docs/api/starter-kitty-validators.emailvalidatoroptions.allowsubdomains.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.