import { co } from "jazz-tools" import type { JsonValue } from "cojson" export type PersonalLinkType = { title: string url: string description: string note: string status: "Learning" | "Learned" | "To Learn" topic: string date: string dateAdded: string } export type TodoItem = { text: string done: boolean } export type User = { name: string username: string website: string bio: string } /* * Jazz-tools */ type Nullable = T | null | undefined export function nullable(coType: co): co> { return coType as co> } export function nullableLiteral(...lit: T): co> { return nullable(co.literal(...lit)) } type JsonNullable = T | null export function nullableJson(): co> { return co.json>() }