mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
licenses/reducers: use ReadonlyArray
This helps protect against mistakes in future changes.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user