-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.js
More file actions
24 lines (21 loc) · 839 Bytes
/
types.js
File metadata and controls
24 lines (21 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// This file contains global type definitions that can be reused
/** @typedef {import('fastify').FastifyInstance} FastifyInstance */
/** @typedef {import('fastify').FastifyReply} FastifyReply */
/** @typedef {import('fastify').FastifyRequest} FastifyRequest */
/** @typedef {import('redis').RedisClientType} RedisClient */
/** @typedef {import('joi').ValidationError} ValidationError */
/**
* @typedef {Object} Pagination
* @property {number} limit
* @property {number} offset
* @property {number} page
*/
/**
* @typedef {object} TestingResources
* @property {string?} accessToken
* @property {object | null} customData
* @property {FastifyInstance | null} fastifyServer
* @property {import('mongodb-memory-server').MongoMemoryServer | null} mongoServer
* @property {string?} refreshToken
* @property {User | null} user
*/