Comparing version 0.1.2 to 0.1.3
export { TSConfig } from './tsconfig' | ||
export { PackageJSON } from './packagejson' | ||
export * from './packagejson' |
import type { CompilerOptions, TypeAcquisition } from 'typescript' | ||
type StripEnums<T extends Record<string, any>> = { | ||
[K in keyof T]: T[K] extends boolean | ||
? T[K] | ||
: T[K] extends string | ||
? T[K] | ||
: T[K] extends object | ||
? T[K] | ||
: T[K] extends Array<any> | ||
? T[K] | ||
: T[K] extends undefined | ||
? undefined | ||
: any | ||
} | ||
export interface TSConfig { | ||
compilerOptions: CompilerOptions; | ||
exclude: string[]; | ||
compileOnSave: boolean; | ||
extends: string; | ||
files: string[]; | ||
include: string[]; | ||
typeAcquisition: TypeAcquisition | ||
compilerOptions?: StripEnums<CompilerOptions> | ||
exclude?: string[] | ||
compileOnSave?: boolean | ||
extends?: string | ||
files?: string[] | ||
include?: string[] | ||
typeAcquisition?: TypeAcquisition | ||
} |
{ | ||
"name": "pkg-types", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "TypeScript definitions for tsconfig.json and package.json", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9204
6
178
1