assert typelinks wont be null

This commit is contained in:
outfoxxed 2026-05-04 02:24:40 -07:00
parent 9c0ec928e6
commit 80a23cb66f
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -168,7 +168,7 @@ const shikiCopyButton: ShikiTransformer = {
"alia-live": "polite",
"data-code": this.source.replace(
/TYPE99(\w+.)99TYPE/g,
(_full: string, match: string) => getQMLTypeLinkObject(match).name,
(_full: string, match: string) => getQMLTypeLinkObject(match)!.name!,
),
onclick: `
navigator.clipboard.writeText(this.dataset.code);