src/types.ts
import { Value as JSONValue } from 'json-typescript'
export type Content = JSONValue
export type Upload = JSONValue | File
export type CID = string
export type Peer = string
export type ByteLength = number
export type Auth = {
username: string
password: string
}
export type Register = {
username: string
password: string
email: string
}