Change known links record type.
Since I added __comment in 316cb1b
this would cause a type error.
This commit is contained in:
parent
11e436eca6
commit
fd3faa4807
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue