Skip to content

Instantly share code, notes, and snippets.

View Peeeep's full-sized avatar

Alexander Kurnikowski Peeeep

View GitHub Profile
@Peeeep
Peeeep / assetlinks.json.ts
Last active December 5, 2023 17:28
TypeScript types for .well-known/assetlinks.json (Android App Links)
@Peeeep
Peeeep / apple-app-site-association.ts
Last active December 5, 2023 17:27
TypeScript types for .well-known/apple-app-site-association (Universal Links)
type Component = {
/** The pattern to match with the URL path component. The default is `*`, which matches everything. */
"/"?: string;
/** The pattern or dictionary to match with the URL query component. The default is `*`, which matches everything. */
"?"?: string | Record<string, string>;
/** The pattern to match with the URL fragment component. The default is `*`, which matches everything. */
"#"?: string;
/** A Boolean value that indicates whether to stop pattern matching and prevent the universal link from opening if the URL matches the associated pattern. The default is `false`. */
exclude?: boolean;
/** Text that the system ignores. Use this to provide information about the URLs a pattern matches. */