touchups after refactor
This commit is contained in:
@@ -12,6 +12,7 @@ interface Activity {
|
||||
elevation_loss: number;
|
||||
type: "trail" | "summit_log"
|
||||
author: string;
|
||||
created: string;
|
||||
}
|
||||
|
||||
export { type Activity }
|
||||
@@ -3,7 +3,7 @@ import type { Comment } from "../comment";
|
||||
|
||||
const CommentCreateSchema = z.object({
|
||||
text: z.string(),
|
||||
rating: z.number(),
|
||||
rating: z.number().optional(),
|
||||
author: z.string().length(15),
|
||||
trail: z.string().length(15),
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { UserAnonymous } from "./user";
|
||||
export class Comment {
|
||||
id?: string;
|
||||
text: string;
|
||||
rating: number;
|
||||
rating?: number;
|
||||
author: string;
|
||||
trail: string;
|
||||
created?: string;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { object, string } from "yup";
|
||||
import type { Trail } from "./trail";
|
||||
import type { ListShare } from "./list_share";
|
||||
import type { UserAnonymous } from "./user";
|
||||
@@ -36,11 +35,4 @@ export interface ListFilter {
|
||||
public?: boolean;
|
||||
shared?: boolean;
|
||||
sortOrder?: "+" | "-"
|
||||
}
|
||||
|
||||
export const listSchema = object<List>({
|
||||
id: string().optional(),
|
||||
name: string().required(),
|
||||
description: string().optional(),
|
||||
avatar: string().optional()
|
||||
});
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as M from "maplibre-gl";
|
||||
import { number, object, string } from "yup";
|
||||
|
||||
class Waypoint {
|
||||
id?: string;
|
||||
|
||||
Reference in New Issue
Block a user