@ndbx/runtime
Version:
The `@ndbx/runtime` package provides a runtime environment to embed NodeBox visualizations directly into React applications. NodeBox is a powerful tool for creating interactive and generative visualizations, and this runtime allows you to integrate those
12 lines (11 loc) • 529 B
TypeScript
import { Project } from "./types";
export declare const LATEST_FORMAT_VERSION = 4;
/**
* Sets the current format version on the project to the latest supported version,
* ensuring compatibility and integrity of the project's format.
*
* @param project The project object to be updated.
* @returns The updated project object with the correct format version.
* @throws Error if the project's version is newer than supported.
*/
export declare function updateFormatVersion(project: Project, formatVersion?: number): Project;