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;
|
text: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const known: KnownLink[] = knownLinks.map((data: Record<string, string>) => ({
|
const known: KnownLink[] = knownLinks.map((data: Record<string, unknown>) => ({
|
||||||
regex: new RegExp(data.regex),
|
regex: new RegExp(data.regex as string),
|
||||||
text: data.text,
|
text: data.text as string,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export default class RelationLink {
|
export default class RelationLink {
|
||||||
|
|
Loading…
Reference in New Issue