mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
infer return type of functions
This commit is contained in:
@@ -6,7 +6,7 @@ export function authenticateAdmin({
|
||||
}: {
|
||||
username: string
|
||||
password: string
|
||||
}) {
|
||||
}): boolean {
|
||||
if (username !== 'admin') {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user