next-csrf
Version:
CSRF mitigation library for Next.js
28 lines (27 loc) • 935 B
TypeScript
declare type EventBuildCompleted = {
durationInSeconds: number;
totalPageCount: number;
hasDunderPages: boolean;
hasTestPages: boolean;
};
export declare function eventBuildCompleted(pagePaths: string[], event: Omit<EventBuildCompleted, 'totalPageCount' | 'hasDunderPages' | 'hasTestPages'>): {
eventName: string;
payload: EventBuildCompleted;
};
declare type EventBuildOptimized = {
durationInSeconds: number;
totalPageCount: number;
staticPageCount: number;
staticPropsPageCount: number;
serverPropsPageCount: number;
ssrPageCount: number;
hasDunderPages: boolean;
hasTestPages: boolean;
hasStatic404: boolean;
hasReportWebVitals: boolean;
};
export declare function eventBuildOptimize(pagePaths: string[], event: Omit<EventBuildOptimized, 'totalPageCount' | 'hasDunderPages' | 'hasTestPages'>): {
eventName: string;
payload: EventBuildOptimized;
};
export {};