diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-09 08:17:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-09 08:17:16 +0200 |
commit | 5224c394b3bbac6ec1543e41fa0ec6db436e84fa (patch) | |
tree | 36eaecfe095547aca903a8a43fb6e0b0b01899a9 /server/typings/express.ts | |
parent | 511765c9f86fb07d5d856decd9dbf0ec2092f4fe (diff) | |
download | PeerTube-5224c394b3bbac6ec1543e41fa0ec6db436e84fa.tar.gz PeerTube-5224c394b3bbac6ec1543e41fa0ec6db436e84fa.tar.zst PeerTube-5224c394b3bbac6ec1543e41fa0ec6db436e84fa.zip |
Stronger actor association typing in AP functions
Diffstat (limited to 'server/typings/express.ts')
-rw-r--r-- | server/typings/express.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/typings/express.ts b/server/typings/express.ts index 3bffc1e9a..f7da55ab0 100644 --- a/server/typings/express.ts +++ b/server/typings/express.ts | |||
@@ -22,6 +22,7 @@ import { VideoCaptionModel } from '../models/video/video-caption' | |||
22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' | 22 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' |
23 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' | 23 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' |
24 | import { PluginModel } from '../models/server/plugin' | 24 | import { PluginModel } from '../models/server/plugin' |
25 | import { SignatureActorModel } from './models' | ||
25 | 26 | ||
26 | declare module 'express' { | 27 | declare module 'express' { |
27 | 28 | ||
@@ -75,7 +76,7 @@ declare module 'express' { | |||
75 | } | 76 | } |
76 | 77 | ||
77 | signature?: { | 78 | signature?: { |
78 | actor: ActorModel | 79 | actor: SignatureActorModel |
79 | } | 80 | } |
80 | 81 | ||
81 | authenticated?: boolean | 82 | authenticated?: boolean |