@morojs/moro / ModuleDefinition
Interface: ModuleDefinition
Defined in: src/types/module.ts:35
Properties
config?
optionalconfig?:object
Defined in: src/types/module.ts:38
Index Signature
[key: string]: any
cache?
optionalcache?:object
cache.ttl
ttl:
number
database?
optionaldatabase?:object
database.path?
optionalpath?:string
rateLimit?
optionalrateLimit?:object
rateLimit.requests
requests:
number
rateLimit.window
window:
number
dependencies?
optionaldependencies?:string[]
Defined in: src/types/module.ts:48
middleware?
optionalmiddleware?:ModuleMiddleware[]
Defined in: src/types/module.ts:49
name
name:
string
Defined in: src/types/module.ts:36
routes?
optionalroutes?: (CompiledRoute|ModuleRoute)[]
Defined in: src/types/module.ts:46
sockets?
optionalsockets?:ModuleSocket[]
Defined in: src/types/module.ts:47
version
version:
string
Defined in: src/types/module.ts:37