fix type assignment error after typescript upgrade

This commit is contained in:
undergroundwires
2020-12-22 23:12:44 +01:00
parent d9e44e2574
commit 55f936fee9

View File

@@ -32,7 +32,7 @@ class DocumentationUrlContainer {
this.urls.push(url);
}
public addUrls(urls: any[]) {
public addUrls(urls: readonly any[]) {
for (const url of urls) {
if (typeof url !== 'string') {
throw new Error('Docs field (documentation url) must be an array of strings');