UNPKG

npm-package-json-lint

Version:
34 lines (33 loc) 1.4 kB
import { PackageJson } from 'type-fest'; /** * Determines whether or not the node's value is an Array * * @param packageJsonData Valid JSON * @param nodeName Name of a node in the package.json file * @return True if the node is an array or is missing. False if it is not. */ export declare const isArray: (packageJsonData: PackageJson | any, nodeName: string) => boolean; /** * Determines whether or not the node's value is a boolean * * @param packageJsonData Valid JSON * @param nodeName Name of a node in the package.json file * @return True if the node is a boolean or is missing. False if it is not. */ export declare const isBoolean: (packageJsonData: PackageJson | any, nodeName: string) => boolean; /** * Determines whether or not the node's value is an object * * @param packageJsonData Valid JSON * @param nodeName Name of a node in the package.json file * @return True if the node is an object or is missing. False if it is not. */ export declare const isObject: (packageJsonData: PackageJson | any, nodeName: string) => boolean; /** * Determines whether or not the node's value is a string * * @param packageJsonData Valid JSON * @param nodeName Name of a node in the package.json file * @return True if the node is a string or is missing. False if it is not. */ export declare const isString: (packageJsonData: PackageJson | any, nodeName: string) => boolean;