Use Readonly and ReadonlyArray

This commit is contained in:
Robert
2023-06-19 10:58:26 +01:00
parent 989ef8b681
commit 1f18cc3f2c

View File

@@ -72,7 +72,7 @@ export abstract class FilePathDiscovery<T extends PathData> extends Discovery {
this.push(this.watcher.onDidChange(this.fileChanged.bind(this)));
}
protected getPathData(): readonly T[] {
protected getPathData(): ReadonlyArray<Readonly<T>> {
return this.pathData;
}