Remove unnecessary exports of file-local helpers

Remove the `export` keyword from functions that are only used within
their own file and are not part of any package's public API:

- `parseStringsParam` and `isOrder` in notifications-backend
- `toWeb` in backend-defaults urlReader
- `resolvePublicPath` in app-backend

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-13 21:29:21 +02:00
parent e98b5c5847
commit dd4ea5896d
3 changed files with 4 additions and 7 deletions
@@ -23,10 +23,7 @@ import { EntityOrder } from '../database';
* Takes a single unknown parameter and makes sure that it's a single string or
* an array of strings, and returns as an array.
*/
export function parseStringsParam(
param: unknown,
ctx: string,
): string[] | undefined {
function parseStringsParam(param: unknown, ctx: string): string[] | undefined {
if (param === undefined) {
return undefined;
}
@@ -57,6 +54,6 @@ export function parseEntityOrderFieldParams(
});
}
export function isOrder(order: string): order is 'asc' | 'desc' {
function isOrder(order: string): order is 'asc' | 'desc' {
return ['asc', 'desc'].includes(order);
}