mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
chore(places): export only what other files use
The media targets, the rating label, the rating score constants, the rating match and the copy editor types are read inside their own files only, which lint:knip holds.
This commit is contained in:
@@ -48,10 +48,10 @@ const NO_MATCH: LibraryMatch = { search: null, categoryId: null, status: null, t
|
||||
* a cursor read the same on both engines; ties a millionth of a star apart
|
||||
* fall back to the key.
|
||||
*/
|
||||
export const RATING_SCORE_SCALE = 1_000_000;
|
||||
const RATING_SCORE_SCALE = 1_000_000;
|
||||
|
||||
/** The sort value of an entry nobody voted on: below every average, so it comes last. */
|
||||
export const UNRATED_SCORE = -1;
|
||||
const UNRATED_SCORE = -1;
|
||||
|
||||
/**
|
||||
* The road trip stops that belong to the drive rather than to the places of
|
||||
@@ -105,7 +105,7 @@ export interface LibraryMatch {
|
||||
* rating counts them. `min` keeps the entries whose average is at least that
|
||||
* many stars (an entry without votes has none); null keeps every entry.
|
||||
*/
|
||||
export interface LibraryRatingMatch {
|
||||
interface LibraryRatingMatch {
|
||||
min: number | null;
|
||||
reach: LibraryArms;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
/** Who edits, as the permission checks read them. */
|
||||
export interface CopyEditor {
|
||||
interface CopyEditor {
|
||||
id: number;
|
||||
role: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user