@@ -142,7 +142,7 @@ export type MutatorCallback<Data = any> = (
142142 currentValue ?: Data
143143) => Promise < undefined | Data > | undefined | Data
144144
145- export type MutatorOption = {
145+ export type MutatorOptions = {
146146 revalidate ?: boolean
147147 populateCache ?: boolean
148148}
@@ -167,27 +167,27 @@ export type Mutator<Data = any> = (
167167 cache : Cache ,
168168 key : Key ,
169169 data ?: Data | Promise < Data > | MutatorCallback < Data > ,
170- opts ?: boolean | MutatorOption
170+ opts ?: boolean | MutatorOptions
171171) => Promise < Data | undefined >
172172
173173export interface ScopedMutator < Data = any > {
174174 /** This is used for bound mutator */
175175 (
176176 key : Key ,
177177 data ?: Data | Promise < Data > | MutatorCallback < Data > ,
178- opts ?: boolean | MutatorOption
178+ opts ?: boolean | MutatorOptions
179179 ) : Promise < Data | undefined >
180180 /** This is used for global mutator */
181181 < T = any > (
182182 key : Key ,
183183 data ?: T | Promise < T > | MutatorCallback < T > ,
184- opts ?: boolean | MutatorOption
184+ opts ?: boolean | MutatorOptions
185185 ) : Promise < T | undefined >
186186}
187187
188188export type KeyedMutator < Data > = (
189189 data ?: Data | Promise < Data > | MutatorCallback < Data > ,
190- opts ?: boolean | MutatorOption
190+ opts ?: boolean | MutatorOptions
191191) => Promise < Data | undefined >
192192
193193// Public types
0 commit comments