chore(types): make Calendar
types readonly
This commit is contained in:
parent
e711fb11a8
commit
ea43a4cd9d
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## \[unreleased]
|
## \[unreleased]
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Update web-ext to support newer browser APIs and remove `addon-linter` override
|
||||||
|
|
||||||
### 🚜 Refactor
|
### 🚜 Refactor
|
||||||
|
|
||||||
- Inline `fetch` and use `URLSearchParams`
|
- Inline `fetch` and use `URLSearchParams`
|
||||||
|
|
22
types.d.ts
vendored
22
types.d.ts
vendored
|
@ -3,17 +3,17 @@ export type Storage = {
|
||||||
spaceApi?: SpaceApi | undefined;
|
spaceApi?: SpaceApi | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Calendar = CalendarEntry[];
|
export type Calendar = readonly CalendarEntry[];
|
||||||
type CalendarEntry = {
|
export type CalendarEntry = {
|
||||||
begin: string;
|
readonly begin: string;
|
||||||
begin_date: `${number}.${number}.${number}`;
|
readonly begin_date: `${number}.${number}.${number}`;
|
||||||
begin_time: `${number}:${number}`;
|
readonly begin_time: `${number}:${number}`;
|
||||||
end: string;
|
readonly end: string;
|
||||||
end_date: `${number}.${number}.${number}`;
|
readonly end_date: `${number}.${number}.${number}`;
|
||||||
end_time: `${number}:${number}`;
|
readonly end_time: `${number}:${number}`;
|
||||||
name: string;
|
readonly name: string;
|
||||||
description: string | null;
|
readonly description: string | null;
|
||||||
location: string | null;
|
readonly location: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue