Property 'error' does not exist on type 'Session' (ok)

Chú ý phải có đoạn code này thì nó mới nhận file nha
import NextAuth, { DefaultUser } from 'next-auth';

Chú ý để file ở đâu cũng được

Chú ý nếu không cần khai báo thì ta có thể sử dụng cách dưới viết trực tiếp trong file next-env.d.ts hoặc include file trong file tsconfig.json
PreviousMở rộng hoặc ghi đè interface đã khai báo trong file index.d.ts với thuộc tính initialData (ok)NextCách mở rộng interface Options trong axios-hooks một ví dụ quá hay (ok)
Last updated
Was this helpful?