From 453e83ea5d81d203ba34bc43cd5c2c750ba40568 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Aug 2019 11:53:26 +0200 Subject: Stronger model typings --- server/typings/models/oauth/oauth-token.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/typings/models/oauth/oauth-token.ts (limited to 'server/typings/models/oauth/oauth-token.ts') diff --git a/server/typings/models/oauth/oauth-token.ts b/server/typings/models/oauth/oauth-token.ts new file mode 100644 index 000000000..105ea3df3 --- /dev/null +++ b/server/typings/models/oauth/oauth-token.ts @@ -0,0 +1,9 @@ +import { OAuthTokenModel } from '@server/models/oauth/oauth-token' +import { PickWith } from '@server/typings/utils' +import { MUserAccountUrl } from '@server/typings/models' + +export type MOAuthToken = Omit + +export type MOAuthTokenUser = MOAuthToken & + PickWith & + { user?: MUserAccountUrl } -- cgit v1.2.3