16 lines
662 B
TypeScript
16 lines
662 B
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { JSONSchema } from "./JSONSchema";
|
|
import type { PathWithContents } from "./PathWithContents";
|
|
|
|
/**
|
|
* If we have a schema, then we forward the 'arguments' object as-is to the template.
|
|
* If we don't have a schema, then we create a single variable corresponding to the template
|
|
* kind (e.g. `SYSTEM_TEXT_TEMPLATE_VAR` for a system template), and set this variable the
|
|
* string contents of the input block.
|
|
*/
|
|
export type TemplateWithSchema = {
|
|
template: PathWithContents;
|
|
schema: JSONSchema | null;
|
|
legacy_definition: boolean;
|
|
};
|