Skip to content

Commit 7299b23

Browse files
committed
fix import
1 parent 8024afc commit 7299b23

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/ui/types.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
import { type FastifyRequest, type FastifyInstance, type FastifyReply } from 'fastify';
3+
import { type AppRoles, type RunEnvironment } from '@common/roles.js';
4+
import type NodeCache from 'node-cache';
5+
import { type DynamoDBClient } from '@aws-sdk/client-dynamodb';
6+
import { type SecretsManagerClient } from '@aws-sdk/client-secrets-manager';
7+
import { type SQSClient } from '@aws-sdk/client-sqs';
8+
import { type CloudFrontKeyValueStoreClient } from '@aws-sdk/client-cloudfront-keyvaluestore';
9+
import { type AvailableAuthorizationPolicy } from '@common/policies/definition.js';
10+
11+
declare module 'fastify' {
12+
interface FastifyRequest {
13+
startTime: number;
14+
username?: string;
15+
userRoles?: Set<AppRoles>;
16+
tokenPayload?: AadToken;
17+
policyRestrictions?: AvailableAuthorizationPolicy[];
18+
}
19+
}
20+
21+
export type NoDataRequest = {
22+
Params: undefined;
23+
Querystring: undefined;
24+
Body: undefined;
25+
};

0 commit comments

Comments
 (0)