19 lines
590 B
TypeScript
19 lines
590 B
TypeScript
import { InputError, InputNoneError } from "../../modules/error/input";
|
|
import ErrorBase from "../../modules/error";
|
|
import DatabaseError from "../../modules/error/database";
|
|
import Success from "../../modules/response/success";
|
|
import YetInitializationError from "../../modules/error/yet_init";
|
|
|
|
export interface UserSchema {
|
|
userid: string;
|
|
username: string;
|
|
email: string;
|
|
password: string;
|
|
}
|
|
|
|
export default interface PrimarySignup {
|
|
"primary/signup": {
|
|
body: UserSchema;
|
|
response: Success | DatabaseError | InputError | InputNoneError | YetInitializationError;
|
|
};
|
|
} |