hunk.code_window: export default async function (
     pkgJsonPath: string,
     removedPackages: string[],
     saveType: DependenciesType
   ): Promise<Package> {
     const packageJson = await loadJsonFile(pkgJsonPath)
  
hunk.labels: keep keep keep replace keep keep
hunk.after_edit:   saveType?: DependenciesType
  
hunk.file_path: src/removeDeps.ts
hunk.type: replace
file: import {PnpmOptions} from './types'
  export type DependenciesType = 'dependencies' | 'devDependencies' | 'optionalDependencies'
  
  export const dependenciesTypes: DependenciesType[] = ['dependencies', 'devDependencies', 'optionalDependencies']
  
  export default function getSaveType (opts: PnpmOptions): DependenciesType | undefined {
    if (opts.saveDev) return 'devDependencies'
    if (opts.saveOptional) return 'optionalDependencies'
    if (opts.save) return 'dependencies'
    return undefined
  }
  