Merge branch 'fix/ts-dictionary-editor-dialog' into 'main'
fix(ui): TS2345 в DictionaryEditorDialog#449 — narrow unknown See merge request 2-6/2-6-4/terravault/ordinis!273
This commit is contained in:
@@ -790,9 +790,12 @@ export type SchemaTemplateSummary = {
|
|||||||
tags: string[]
|
tags: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Full schema template c JSON Schema body (lazy fetch when user picks). */
|
/** Full schema template c JSON Schema body (lazy fetch when user picks).
|
||||||
|
* schemaJson — curated server-side, прошёл валидацию при загрузке
|
||||||
|
* template'а; здесь типизируем как JsonSchema чтобы parseSchemaJson
|
||||||
|
* и downstream-консьюмеры не падали на TS2345 от unknown. */
|
||||||
export type SchemaTemplateDetail = SchemaTemplateSummary & {
|
export type SchemaTemplateDetail = SchemaTemplateSummary & {
|
||||||
schemaJson: unknown
|
schemaJson: JsonSchema
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user