From cca7ac3113eee20d068a0819fefad639f265113e Mon Sep 17 00:00:00 2001 From: Vitaly Kravtsov Date: Thu, 7 Nov 2024 22:04:07 +0600 Subject: [PATCH] fix(typescript): specify type for resourceList --- src/aidbox_sdk/generator/typescript.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aidbox_sdk/generator/typescript.clj b/src/aidbox_sdk/generator/typescript.clj index ad54150..a21fac0 100644 --- a/src/aidbox_sdk/generator/typescript.clj +++ b/src/aidbox_sdk/generator/typescript.clj @@ -229,7 +229,7 @@ (remove fhir/logical?) (map (fn [schema] (class-name (:resource-name schema)))) sort)] - (flatten ["export const resourceList = [" + (flatten ["export const resourceList: readonly ResourceType[] = [" (map #(str u/indent "" \" % "\",") names) "];"])))