Total Complexity | 1 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import { IDynamicStorageRbac, IStorageRbac } from '../../../src'; |
||
4 | |||
5 | @Injectable() |
||
6 | export class AsyncService implements IDynamicStorageRbac{ |
||
7 | async getRbac(): Promise<IStorageRbac> { |
||
8 | return new Promise((resolve)=>{ |
||
9 | // resolve(RBAC) |
||
10 | setTimeout(()=>{ |
||
11 | resolve(RBAC) |
||
12 | },1000) |
||
13 | }) |
||
15 | } |