Swap to using eslint (#435)
* WIP * ... and more * yet more... * and examples (more-or-less) fixed * Only problematic promisify left... * Last batch * rm config header * Update * Use Record * Bumps
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
type ObjectIndexed = {
|
||||
[index: string]: any
|
||||
};
|
||||
interface ObjectIndexed {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
[index: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name isJsonObject
|
||||
@@ -31,8 +32,8 @@ type ObjectIndexed = {
|
||||
* ```
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export default function isJsonObject (value: any): value is ObjectIndexed {
|
||||
|
||||
value = typeof value !== 'string'
|
||||
? JSON.stringify(value)
|
||||
: value;
|
||||
|
||||
Reference in New Issue
Block a user