@callstack/react-native-legal-shared
Version:
Shared code for all packages
35 lines (24 loc) • 882 B
text/typescript
import type { DependencyType } from './DependencyType';
import type { ScanPackageCallContext } from './ScanPackageCallContext';
export type LicenseObj = {
/** Package name */
name: string;
/** Package author */
author?: string;
/** Package license contents */
content?: string;
/** Package description */
description?: string;
/** License file path */
file?: string;
/** License type */
type?: string;
/** Package repository URL */
url?: string;
/** The resolved version that was actually installed */
version: string;
/** The source of how this package has been introduced to the dependency tree */
dependencyType: DependencyType;
/** The required version specified in package.json */
requiredVersion: string;
} & Pick<ScanPackageCallContext, 'parentPackageName' | 'parentPackageRequiredVersion' | 'parentPackageResolvedVersion'>;