mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
absolutely massive typescript porting time
This commit is contained in:
parent
01f238f515
commit
30d08a630f
159 changed files with 2563 additions and 3861 deletions
21
packages/roleypoly-types/sessions.d.ts
vendored
Normal file
21
packages/roleypoly-types/sessions.d.ts
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
export declare type BaseSession = {
|
||||
userId: string,
|
||||
expiresAt: number
|
||||
}
|
||||
|
||||
export declare type OAuthSession = BaseSession & {
|
||||
authType: 'oauth',
|
||||
accessToken: string,
|
||||
refreshToken: string
|
||||
}
|
||||
|
||||
export declare type DMSession = BaseSession & {
|
||||
authType: 'dm'
|
||||
}
|
||||
|
||||
export declare type AuthSession = OAuthSession | DMSession
|
||||
|
||||
export declare type Session = AuthSession & Partial<{
|
||||
|
||||
}>
|
Loading…
Add table
Add a link
Reference in a new issue