xux-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

xux-types

TypeScript Build Status Coverage Status Npm Package Info Downloads

Abstract

XUX data validator.

DON'T use this package if you don't know XUX or recore!

Install

npm install xux-types --save

Usage

// Foobar.api.ts
import xux from 'xux-types'
 
type Request = {
  email: xux.Email
}
 
type Response = {
  success: xux.Boolean
}
 
declare class Foobar {
  updateEmail (req: Request) : Promise<Response>
}

Package Sidebar

Install

npm i xux-types

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

58.5 kB

Total Files

75

Last publish

Collaborators

  • yusangeng