File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11import { Authorisation } from "./auth/Authorisation.js" ;
22import { Permissible } from "./auth/Permissible.js" ;
3+ import { Permission } from "./auth/Permission.js" ;
34import { Request } from "./Request.js" ;
45
6+ /**
7+ * A request with available {@link Authorisation}.
8+ */
59export class AuthenticatedRequest < A > extends Request < A > implements Permissible {
10+ /**
11+ * This request’s authorisation.
12+ */
613 public readonly authorisation : Authorisation < A > ;
14+
15+ /**
16+ * Create a new authenticated request.
17+ * @param authorisation
18+ * @param args The arguments to pass to the {@link Request} constructor.
19+ */
720 public constructor (
821 authorisation : Authorisation < A > ,
922 ...args : ConstructorParameters < typeof Request < A > >
You can’t perform that action at this time.
0 commit comments