The official TypeScript template for Create React App providing preconfigured TypeScript support and development environment setup.
Overall
score
98%
Create an install-ready experience for a TypeScript React app that uses the CRA template's manifest and bundled PWA icons.
/manifest.json, parsing the CRA-provided icons (logo192.png, logo512.png) and converting their sizes strings to numeric dimensions; returns manifest data (name, short_name, start_url, display, theme_color, background_color, icons) and includes status text when the response is not ok @testshort_name or name @test<link rel="manifest" href="/manifest.json"> exists in the document head and creates it if missing without duplicating existing links @test<meta name="theme-color"> to the manifest theme_color, falling back to background_color when the theme color is absent @testbeforeinstallprompt event is captured, then calls the stored prompt() on click and surfaces the userChoice outcome via a callback @test@generates
export type PwaIcon = { src: string; size: number; type: string };
export type PwaManifest = {
name: string;
shortName: string;
startUrl: string;
display: string;
themeColor?: string;
backgroundColor?: string;
icons: PwaIcon[];
};
export function loadManifest(): Promise<PwaManifest>;
export function selectIcon(manifest: PwaManifest): { icon: PwaIcon; alt: string };
export function applyManifestMetadata(manifest: PwaManifest): void;
export type InstallResult = { outcome: 'accepted' | 'dismissed'; platform?: string };
export function useInstallPrompt(): {
canPrompt: boolean;
promptInstall(): Promise<InstallResult>;
lastResult: InstallResult | null;
};
export function PwaInstallCard(props: {
manifest: PwaManifest;
onInstallResult(result: InstallResult): void;
}): JSX.Element;Provides the CRA TypeScript scaffold with public/manifest.json, logo192.png, and logo512.png used for installable PWA metadata.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-cra-template-typescript