Skip to content

💧 Strongly typed validation library that decouples type aliases from validation logic

License

Notifications You must be signed in to change notification settings

johannes-lindgren/pure-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PureParse logo

PureParse

Typesafe, lightweight parsers

Strongly typed validation library that decouples type aliases from validation logic

Documentation

CI Status for Tests License Created by Johannes Lindgren

Declare the type:

type User = {
  id: number
  name: string
}

const parseUser = object<User>({
  id: parseNumber,
  name: parseString,
})

...or infer the type:

const parseUser = object({
  id: parseNumber,
  name: parseString,
})

type User = Infer<typeof parseUser>


About

💧 Strongly typed validation library that decouples type aliases from validation logic

Resources

License

Stars

Watchers

Forks

Packages

No packages published