first commit

This commit is contained in:
“dongming”
2026-01-21 16:08:49 +08:00
commit ea72dd0c3c
57 changed files with 11884 additions and 0 deletions

11
src/utils/payload.ts Normal file
View File

@@ -0,0 +1,11 @@
import type { Category, Media } from '../clientsdk/types.gen'
export const isCategory = (value: unknown): value is Category => {
if (!value || typeof value !== 'object') return false
return 'title' in value
}
export const isMedia = (value: unknown): value is Media => {
if (!value || typeof value !== 'object') return false
return 'url' in value
}