1
Fork 0

Change known links record type.

Since I added __comment in 316cb1b this would cause a type error.
This commit is contained in:
Bauke 2022-01-03 18:22:13 +01:00
parent 11e436eca6
commit fd3faa4807
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ type KnownLink = {
text: string;
};
const known: KnownLink[] = knownLinks.map((data: Record<string, string>) => ({
regex: new RegExp(data.regex),
text: data.text,
const known: KnownLink[] = knownLinks.map((data: Record<string, unknown>) => ({
regex: new RegExp(data.regex as string),
text: data.text as string,
}));
export default class RelationLink {