Skip to content

Commit

Permalink
fix: revert previous change (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlunets committed Mar 13, 2024
1 parent 4879e19 commit f19e9b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-chicken-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sap-ux/vocabularies-types': patch
---

Revert previous change
2 changes: 0 additions & 2 deletions packages/vocabularies-types/utils/generate_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,6 @@ async function generateTypes(vocabularyConfig: VocabularyConfig, targetFolder: s
compositeTarget += `\n\ntype ${extractTypeName}<T> = T extends \`\${infer U extends keyof ${baseAnnotationMap}}#\${string}\` ? U : never;`;
compositeTarget += `\n\nexport type ${annotationMap} = ${baseAnnotationMap} & {\n`;
compositeTarget += ` [key in \`\${string & keyof ${baseAnnotationMap}}#\${string}\`]: ${baseAnnotationMap}[${extractTypeName}<key>]`;
compositeTarget += `\n} & {`;
compositeTarget += `\n [key: string]: {\n term?: ${vocabularyNamespaceTrans}.${vocabularyAlias}AnnotationTerms\n; qualifier?:string; } | PropertyAnnotationValue<unknown>;`;
compositeTarget += `\n};`;
compositeTarget += '\n';

Expand Down

0 comments on commit f19e9b4

Please sign in to comment.