类型“Application”上不存在属性“lru”。ts(2339)
Open
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
```cache.ts
import { provide, inject, Context } from '@ali/midway'
@provide('cacheService')
export class CacheService{
@inject()
ctx: Context;
get(key: string) {
return this.ctx.app.lru.get(key)
}
set(key: string, value) {
return this.ctx.app.lru.set(key, value)
}
}
```
编译时报错如下
error TS2339: Property 'lru' does not exist on type 'Application'.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.