From e6d203994a651e0a20f2b5be968c99760e7eead3 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 28 Jul 2021 15:16:43 +0200 Subject: [PATCH] refactor: better isPlainObject --- src/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types.ts b/src/types.ts index b1a12727..e00bb23f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,6 +6,9 @@ import { Pinia } from './rootStore' */ export type StateTree = Record +export function isPlainObject( + value: S | unknown +): value is S export function isPlainObject( // eslint-disable-next-line @typescript-eslint/no-explicit-any o: any -- 2.47.2