mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add eslint linter
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import {InstanceConfig, request, Statistics, User} from "./index";
|
||||
|
||||
import {InstanceConfig, request, Statistics, User} from './index'
|
||||
|
||||
export async function login(email: string, password: string): Promise<boolean> {
|
||||
const response = await request({
|
||||
@@ -19,7 +18,6 @@ export async function register(email: string, password: string): Promise<boolean
|
||||
return response.status === 201
|
||||
}
|
||||
|
||||
|
||||
export async function getUser(): Promise<User> {
|
||||
const response = await request<User>({
|
||||
url: 'me'
|
||||
@@ -39,4 +37,4 @@ export async function getStatistics(): Promise<Statistics> {
|
||||
url: 'stats'
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user