Skip to content

Commit c1f7ce3

Browse files
heyBettbalazsorban44
authored andcommittedJul 8, 2022
fix(ts): make colorScheme optional (#4868)
Documentation says if it is not passed it will be "auto", but it is mandatory on this type.
1 parent c59a4e0 commit c1f7ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/next-auth/src/core/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export interface NextAuthOptions {
214214
* [Pages](https://next-auth.js.org/configuration/pages)
215215
*/
216216
export interface Theme {
217-
colorScheme: "auto" | "dark" | "light"
217+
colorScheme?: "auto" | "dark" | "light"
218218
logo?: string
219219
brandColor?: string
220220
buttonText?: string

0 commit comments

Comments
 (0)
Please sign in to comment.