@paroicms/connector
Version:
An API to help build management tools for ParoiCMS instances
13 lines (12 loc) • 523 B
TypeScript
import type { ScSiteSchema } from "@paroicms/public-anywhere-lib";
import type { Knex } from "knex";
import type { NodeRow } from "../row-types.js";
export declare function createNode(siteSchema: ScSiteSchema, cn: Knex | Knex.Transaction, { parentId, depth, typeName, }: {
parentId?: string;
depth?: number;
typeName: string;
}): Promise<NodeRow>;
export declare function isTypeNameChildOf(siteSchema: ScSiteSchema, { parentTypeName, typeName }: {
parentTypeName: string;
typeName: string;
}): boolean;