The official TypeScript template for Create React App providing preconfigured TypeScript support and development environment setup.
Overall
score
98%
A lightweight entry point that wires optional collection of core web performance metrics and forwards them to callbacks or endpoints.
@generates
export type CoreVitalName = 'CLS' | 'FID' | 'FCP' | 'LCP' | 'TTFB';
export interface VitalMetric {
name: CoreVitalName;
value: number;
id: string;
delta: number;
rating: 'good' | 'needs-improvement' | 'poor';
entries: PerformanceEntry[];
}
export interface ReporterOptions {
onReport?: (metric: VitalMetric) => void;
endpoint?: string;
fetchImpl?: typeof fetch;
}
export function startWebPerformanceReporting(options?: ReporterOptions): void;Collects Core Web Vitals metrics on demand and supplies the measurement objects. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-cra-template-typescript