@@ -88,13 +88,13 @@ function mergeReactiveObjects<
8888
8989 // no need to go through symbols because they cannot be serialized anyway
9090 for ( const key in patchToApply ) {
91- if ( ! patchToApply . hasOwnProperty ( key ) ) continue
91+ if ( ! Object . hasOwn ( patchToApply , key ) ) continue
9292 const subPatch = patchToApply [ key ]
9393 const targetValue = target [ key ]
9494 if (
9595 isPlainObject ( targetValue ) &&
9696 isPlainObject ( subPatch ) &&
97- target . hasOwnProperty ( key ) &&
97+ Object . hasOwn ( target , key ) &&
9898 ! isRef ( subPatch ) &&
9999 ! isReactive ( subPatch )
100100 ) {
@@ -133,10 +133,7 @@ export function skipHydrate<T = any>(obj: T): T {
133133 * @returns true if `obj` should be hydrated
134134 */
135135export function shouldHydrate ( obj : any ) {
136- return (
137- ! isPlainObject ( obj ) ||
138- ! Object . prototype . hasOwnProperty . call ( obj , skipHydrateSymbol )
139- )
136+ return ! isPlainObject ( obj ) || ! Object . hasOwn ( obj , skipHydrateSymbol )
140137}
141138
142139const { assign } = Object
@@ -283,7 +280,7 @@ function createSetupStore<
283280
284281 // avoid triggering too many listeners
285282 // https://github.com/vuejs/pinia/issues/1129
286- let activeListener : Symbol | undefined
283+ let activeListener : symbol | undefined
287284 function $patch ( stateMutation : ( state : UnwrapRef < S > ) => void ) : void
288285 function $patch ( partialState : _DeepPartial < UnwrapRef < S > > ) : void
289286 function $patch (
@@ -938,10 +935,12 @@ export function defineStore(
938935 * - `SS` is the return type of the setup function
939936 * @see {@link StoreDefinition }
940937 */
941- export interface SetupStoreDefinition < Id extends string , SS >
942- extends StoreDefinition <
943- Id ,
944- _ExtractStateFromSetupStore < SS > ,
945- _ExtractGettersFromSetupStore < SS > ,
946- _ExtractActionsFromSetupStore < SS >
947- > { }
938+ export interface SetupStoreDefinition <
939+ Id extends string ,
940+ SS ,
941+ > extends StoreDefinition <
942+ Id ,
943+ _ExtractStateFromSetupStore < SS > ,
944+ _ExtractGettersFromSetupStore < SS > ,
945+ _ExtractActionsFromSetupStore < SS >
946+ > { }
0 commit comments