import { RestClient } from "../lib/rest" ; export interface SignUpInput { username : string ; password : string ; email : string ; } export interface SignUpResponse { token : string ; } export default function signUp ( rest , input ) { return rest . fetch < SignUpResponse > ( "/auth/local/signup" , { method : "POST" , body : input , } ) ; }