Exports TypeScript types used by c2pa-web that are auto-generated from c2pa-rs structs.
Ensure the repo-wide prerequisites are installed:
See the c2pa-js README for details.
To build the types:
nx build c2pa-types
The types are built as follows:
schemars::JsonSchema attribute.schemars::schema_for and saved to the schemas/ directory.json-schema-to-typescript and used to generate TypeScript types, saved to the types/ directory.index.d.ts file.