mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
适配typescript编译
This commit is contained in:
@@ -110,6 +110,10 @@ const fetchToken = async (code: string): Promise<NotionTokenResponse> => {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error fetching token', error)
|
||||
return null
|
||||
return {
|
||||
status: 400,
|
||||
statusText: 'failed',
|
||||
data: null as unknown as NotionTokenResponseData
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user