From: Eduardo San Martin Morote Date: Wed, 28 Jul 2021 13:16:43 +0000 (+0200) Subject: refactor: better isPlainObject X-Git-Tag: v2.0.0-rc.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d203994a651e0a20f2b5be968c99760e7eead3;p=thirdparty%2Fvuejs%2Fpinia.git refactor: better isPlainObject --- 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