mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-11 20:08:57 +00:00
Update version to 1.0.0 across package.json and changelog. Configure netlify.toml with Convex deployment URL (agreeable-trout-200.convex.site). Verify TypeScript type-safety for src and convex directories. Confirm Netlify build passes with SPA 404 fallback configured. Update TASK.md with deployment steps and files.md with complete file structure.
61 lines
1.7 KiB
TypeScript
61 lines
1.7 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated data model types.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type {
|
|
DataModelFromSchemaDefinition,
|
|
DocumentByName,
|
|
TableNamesInDataModel,
|
|
SystemTableNames,
|
|
} from "convex/server";
|
|
import type { GenericId } from "convex/values";
|
|
import schema from "../schema.js";
|
|
|
|
/**
|
|
* The names of all of your Convex tables.
|
|
*/
|
|
export type TableNames = TableNamesInDataModel<DataModel>;
|
|
|
|
/**
|
|
* The type of a document stored in Convex.
|
|
*
|
|
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
*/
|
|
export type Doc<TableName extends TableNames> = DocumentByName<
|
|
DataModel,
|
|
TableName
|
|
>;
|
|
|
|
/**
|
|
* An identifier for a document in Convex.
|
|
*
|
|
* Convex documents are uniquely identified by their `Id`, which is accessible
|
|
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
|
|
*
|
|
* Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
|
|
*
|
|
* IDs are just strings at runtime, but this type can be used to distinguish them from other
|
|
* strings when type checking.
|
|
*
|
|
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
*/
|
|
export type Id<TableName extends TableNames | SystemTableNames> =
|
|
GenericId<TableName>;
|
|
|
|
/**
|
|
* A type describing your Convex data model.
|
|
*
|
|
* This type includes information about what tables you have, the type of
|
|
* documents stored in those tables, and the indexes defined on them.
|
|
*
|
|
* This type is used to parameterize methods like `queryGeneric` and
|
|
* `mutationGeneric` to make them type-safe.
|
|
*/
|
|
export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
|