licenses/reducers: use ReadonlyArray

This helps protect against mistakes in future changes.
This commit is contained in:
David Lechner
2022-03-01 12:00:29 -06:00
parent 55c6841fae
commit 80219d297f
+1 -1
View File
@@ -12,7 +12,7 @@ export interface LicenseInfo {
readonly licenseText: string;
}
export type LicenseList = LicenseInfo[];
export type LicenseList = ReadonlyArray<LicenseInfo>;
const list: Reducer<LicenseList | null> = (state = null, action) => {
if (didFetchList.matches(action)) {