| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/ |
Upload File : |
//#region src/check.d.ts
/**
* vinext check — compatibility scanner for Next.js apps
*
* Scans an existing Next.js app and produces a compatibility report
* showing what will work, what needs changes, and an overall score.
*/
type Status = "supported" | "partial" | "unsupported";
type CheckItem = {
name: string;
status: Status;
detail?: string;
files?: string[];
};
type CheckResult = {
imports: CheckItem[];
config: CheckItem[];
libraries: CheckItem[];
conventions: CheckItem[];
summary: {
supported: number;
partial: number;
unsupported: number;
total: number;
score: number;
};
};
/**
* Scan source files for `import ... from 'next/...'` statements.
*/
declare function scanImports(root: string): CheckItem[];
/**
* Analyze next.config.js/mjs/ts for supported and unsupported options.
*/
declare function analyzeConfig(root: string): CheckItem[];
/**
* Check package.json dependencies for known libraries.
*/
declare function checkLibraries(root: string): CheckItem[];
/**
* Check file conventions (pages, app directory, middleware, etc.)
*/
declare function checkConventions(root: string): CheckItem[];
/**
* Run the full compatibility check.
*/
declare function runCheck(root: string): CheckResult;
/**
* Format the check result as a colored terminal report.
*/
declare function formatReport(result: CheckResult, opts?: {
calledFromInit?: boolean;
}): string;
//#endregion
export { CheckResult, analyzeConfig, checkConventions, checkLibraries, formatReport, runCheck, scanImports };
//# sourceMappingURL=check.d.ts.map