We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
any
1 parent 6816be1 commit f02d3f9Copy full SHA for f02d3f9
src/typings/JSONValue.ts
@@ -1 +1 @@
1
-export type JSONValue = null | boolean | number | string | object | any[];
+export type JSONValue = null | boolean | number | string | object | JSONValue[];
src/util/index.ts
@@ -3,7 +3,7 @@
3
* @param value The value to test if it's a plain object or not.
4
* @returns `true` if `value` is a plain object, `false` if not.
5
*/
6
-export function isPlainObj(value: any): boolean {
+export function isPlainObj(value: unknown): boolean {
7
return !!value && Object.getPrototypeOf(value) === Object.prototype;
8
}
9
0 commit comments