PeerTube/server/typings/models/oauth/oauth-token.ts

10 lines
376 B
TypeScript
Raw Normal View History

2019-08-15 04:53:26 -05:00
import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
import { PickWith } from '@server/typings/utils'
import { MUserAccountUrl } from '@server/typings/models'
export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>
export type MOAuthTokenUser = MOAuthToken &
PickWith<OAuthTokenModel, 'User', MUserAccountUrl> &
{ user?: MUserAccountUrl }