fix(types)(middleware): use official Config type for options (#1200)

This commit is contained in:
Daishi Kato 2022-08-19 08:16:50 +09:00 committed by GitHub
parent 8e987d99aa
commit abb43c4a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import type {} from '@redux-devtools/extension'
import type { Config } from '@redux-devtools/extension'
import { StateCreator, StoreApi, StoreMutatorIdentifier } from '../vanilla'
declare module '../vanilla' {
@ -51,23 +51,9 @@ type StoreDevtools<S> = S extends {
const isObjectWithTypeProperty = (x: unknown): x is { type: unknown } =>
x !== null && typeof x === 'object' && 'type' in x
export interface DevtoolsOptions {
export interface DevtoolsOptions extends Config {
enabled?: boolean
anonymousActionType?: string
name?: string
serialize?:
| boolean
| {
date?: boolean
regex?: boolean
undefined?: boolean
nan?: boolean
infinity?: boolean
error?: boolean
symbol?: boolean
map?: boolean
set?: boolean
}
}
type Devtools = <