chore: enable noUncheckedIndexedAccess, better type check (#2608)

This commit is contained in:
Stephen Zhou
2025-01-18 22:35:23 +08:00
committed by GitHub
parent f947bd1d1e
commit 2cd1b5daf9
182 changed files with 489 additions and 589 deletions
+3 -4
View File
@@ -1,15 +1,14 @@
import type { User } from "@auth/core/types"
import type { AuthUser } from "@follow/shared/hono"
import { op } from "./op"
export const setIntegrationIdentify = async (user: User) => {
export const setIntegrationIdentify = async (user: AuthUser) => {
op.identify({
profileId: user.id,
email: user.email,
avatar: user.image,
avatar: user.image ?? undefined,
lastName: user.name,
properties: {
// @ts-expect-error
handle: user.handle,
name: user.name,
},