]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/models/oauth/oauth-token.ts
Apply the fix to both expanded and not expanded, using convention
[github/Chocobozzz/PeerTube.git] / server / typings / models / oauth / oauth-token.ts
CommitLineData
453e83ea
C
1import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
2import { PickWith } from '@server/typings/utils'
d7a25329 3import { MUserAccountUrl } from '../user/user'
453e83ea 4
0283eaac
C
5type Use<K extends keyof OAuthTokenModel, M> = PickWith<OAuthTokenModel, K, M>
6
7// ############################################################################
8
453e83ea
C
9export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>
10
a1587156
C
11export type MOAuthTokenUser =
12 MOAuthToken &
0283eaac 13 Use<'User', MUserAccountUrl> &
453e83ea 14 { user?: MUserAccountUrl }