Skip to content

Commit

Permalink
docs: fix typos in typescript_support.md (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coobaha authored May 21, 2023
1 parent ea7124d commit d437a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/typescript_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { create } from 'vest';

type Callback = (data: {username: string, password: string}) => void;
type FieldName = "username" | "password";
type GroupName = "SignIn" | "ChangePassword;
type GroupName = "SignIn" | "ChangePassword";

const suite = create<Callback, FieldName, GroupName>((data) => { // data is now typed
// ...
Expand Down Expand Up @@ -74,7 +74,7 @@ import { create } from 'vest';
type TData = {username: string, password: string};
type Callback = (data: TData) => void;
type FieldName = keyof TData;
type GroupName = "SignIn" | "ChangePassword;
type GroupName = "SignIn" | "ChangePassword";

const suite = create<Callback, FieldName, GroupName>((data) => {
only('username');
Expand Down

2 comments on commit d437a03

@vercel
Copy link

@vercel vercel bot commented on d437a03 May 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest – ./website

vest.vercel.app
vest-ealush.vercel.app
vest-git-latest-ealush.vercel.app
www.vestjs.dev
vestjs.dev

@vercel
Copy link

@vercel vercel bot commented on d437a03 May 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next-git-latest-ealush.vercel.app
vest-next.vercel.app
vest-website.vercel.app
vest-next-ealush.vercel.app

Please sign in to comment.