12 lines
465 B
TypeScript
12 lines
465 B
TypeScript
|
import { GetterTree } from 'vuex'
|
||
|
|
||
|
import { OAUTH2_STORE } from '@/store/constants'
|
||
|
import { IOAuth2Getters, IOAuth2State } from '@/store/modules/oauth2/types'
|
||
|
import { IRootState } from '@/store/modules/root/types'
|
||
|
|
||
|
export const getters: GetterTree<IOAuth2State, IRootState> & IOAuth2Getters = {
|
||
|
[OAUTH2_STORE.GETTERS.CLIENTS]: (state: IOAuth2State) => state.clients,
|
||
|
[OAUTH2_STORE.GETTERS.CLIENTS_PAGINATION]: (state: IOAuth2State) =>
|
||
|
state.pagination,
|
||
|
}
|