Skip to content

Instantly share code, notes, and snippets.

@JWLangford
Created October 14, 2022 10:18
Show Gist options
  • Save JWLangford/1ff0b949da73a305e9e8644b69834f64 to your computer and use it in GitHub Desktop.
Save JWLangford/1ff0b949da73a305e9e8644b69834f64 to your computer and use it in GitHub Desktop.
interface Id {
id: string
}
interface IDates {
created: string
updated: string
}
interface IEmail {
email: string
}
interface IObjectBase {
id: string
created: string
updated: string
}
interface IModalBase {
open: boolean
setOpen(open: boolean): void
}
interface ISliceBase {
loading: boolean
error: boolean
errorMessage: string
}
interface IUserBase {
username: string
email: string
status: number
}
interface IAdminUser extends IObjectBase, IUserBase {
totalSubUsers: number
}
interface ISubUser extends IObjectBase, IUserBase {
adminId: string
}
interface IAdmin2 extends Id, IDates, IUserBase, IEmail {
totalSubUsers: number
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment