types-package-json
Version:
A handful set of package.json types and interfaces to improve working with dynamically imported package.json files.
6 lines (5 loc) • 458 B
Markdown
**Zero overhead** - contains only types and interfaces, no actual objects
**PackageJson** - full package.json interface, name and version is required
**PackageJsonAddress** - optional email and url
**PackageJsonPerson** - required name, optional email and url
**PackageJsonDependencyTypes** - 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies' (bundledDependencies are not included in this type as they serve different purpose)