mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Infer redux types when possible
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import type { ShlinkState } from '../../../src/container/types';
|
||||
import { migrateDeprecatedSettings } from '../../../src/settings/helpers';
|
||||
import type { RootState } from '../../../src/store';
|
||||
|
||||
describe('settings-helpers', () => {
|
||||
describe('migrateDeprecatedSettings', () => {
|
||||
@@ -9,7 +9,7 @@ describe('settings-helpers', () => {
|
||||
});
|
||||
|
||||
it('updates settings as expected', () => {
|
||||
const state = fromPartial<ShlinkState>({
|
||||
const state = fromPartial<RootState>({
|
||||
settings: {
|
||||
visits: {
|
||||
defaultInterval: 'last180days' as any,
|
||||
|
||||
Reference in New Issue
Block a user