index.d.ts 432 B

1234567891011121314
  1. interface PostinstallContext {
  2. root: any;
  3. api: any;
  4. }
  5. declare function addPreset(preset: string, presetOptions: any, { api, root }: PostinstallContext): void;
  6. type Deps = Record<string, string>;
  7. interface PackageJson {
  8. dependencies?: Deps;
  9. devDependencies?: Deps;
  10. }
  11. declare const getFrameworks: ({ dependencies, devDependencies }: PackageJson) => string[];
  12. export { getFrameworks, addPreset as presetsAddPreset };