declarations.d.ts
1 import type { Sequelize } from "sequelize"; 2 import "@feathersjs/transport-commons"; 3 import type { HookContext as FeathersHookContext } from "@feathersjs/feathers"; 4 5 import "@feathersjs/feathers"; 6 7 export interface Configuration { 8 // Put types for app.get and app.set here 9 port: number; 10 host: string; 11 postgres: string; 12 sequelizeClient: Sequelize; 13 public: string; 14 bucketName: string; 15 paginate: { 16 default: number; 17 max: number; 18 }; 19 } 20 // A mapping of service names to types. Will be extended in service files. 21 // biome-ignore lint/complexity/noBannedTypes: <explanation> 22 export type ServiceTypes = {}; 23 24 // The application instance type that will be used everywhere else 25 //export type Application = ExpressFeathers<ServiceTypes, Configuration>; 26 export type HookContext = FeathersHookContext<Application>; 27 28 // biome-ignore lint/suspicious/noExplicitAny: <explanation> 29 export type Application = FeathersApplication<{ [key: string]: any }>;