Changed quote styles
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { z } from 'zod'
|
||||
import { z } from "zod"
|
||||
import type { CalendarEvent } from "./CalendarEvent"
|
||||
import { calendarMonthSchema, type CalendarMonth } from "./CalendarMonth"
|
||||
import { dateSchema, type RPGDate } from "./Date"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { z } from 'zod'
|
||||
import { categorySchema, type Category } from './Category'
|
||||
import { dateSchema, type RPGDate } from './Date'
|
||||
import { z } from "zod"
|
||||
import { categorySchema, type Category } from "./Category"
|
||||
import { dateSchema, type RPGDate } from "./Date"
|
||||
|
||||
export interface CalendarEvent {
|
||||
id?: number
|
||||
@@ -33,5 +33,5 @@ export const postEventBodySchema = z.object({
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function isCalendarEvent(object: any): object is CalendarEvent {
|
||||
return 'startDate' in object
|
||||
return "startDate" in object
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from 'zod'
|
||||
import { z } from "zod"
|
||||
|
||||
export interface CalendarMonth {
|
||||
id?: number
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { z } from 'zod'
|
||||
import type { RPGColor } from './Color'
|
||||
import { z } from "zod"
|
||||
import type { RPGColor } from "./Color"
|
||||
|
||||
export interface Category {
|
||||
id: number
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Category } from './Category'
|
||||
import type { RPGDate } from './Date'
|
||||
import type { Category } from "./Category"
|
||||
import type { RPGDate } from "./Date"
|
||||
|
||||
export interface Character {
|
||||
name: string
|
||||
@@ -15,5 +15,5 @@ export interface Character {
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function isCharacter(object: any): object is Character {
|
||||
return 'birth' in object
|
||||
return "birth" in object
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export interface RPGDate {
|
||||
year: number
|
||||
}
|
||||
|
||||
export type RPGDateOrder = 'asc' | 'desc'
|
||||
export type RPGDateOrder = "asc" | "desc"
|
||||
|
||||
export const dateSchema = z.object({
|
||||
day: z.number().int().positive(),
|
||||
|
||||
Reference in New Issue
Block a user