Skip to content

Commit

Permalink
fix(js core): remove type import duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
letzabelin committed Feb 5, 2024
1 parent ed1e597 commit 91fb541
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/generator/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,8 @@
(io/make-parents (io/file path package "indexPackage.ts"))
(with-open [r (io/writer (io/file path package "indexPackage.ts"))]
(.write r "/** GENERATED BY zen-cli\nDON'T MODIFY MANUALLY */\n\n")
(mapv #(when-not (contains? #{"string" "boolean"} %) (.write r (format "export * from './%s'\n" %)))
(keys (get @r/schema package)))
(mapv #(when-not (contains? #{"string" "boolean"} %) (.write r (format "import { %s } from './%s'\n" % %)))
(keys (get @r/schema package)))
(.write r "\n\n")
(.write r "export interface SubsSubscription {\nid?:string;\nresourceType: 'SubsSubscription';\nstatus: 'active' | 'off';trigger: Partial<Record<ResourceType, { event: Array<'all' | 'create' | 'update' | 'delete'>; filter?: unknown }>>; channel: {\ntype: 'rest-hook';\nendpoint: string;\npayload?: { content: string; contentType: string; context: unknown };headers?: Record<string, string>;\ntimeout?: number;\n};\n}")
(.write r "export type ResourceTypeMap = {\n SubsSubscription: SubsSubscription;\n User: Record<string,any>;\n")
(mapv #(when-not (contains? #{"string" "boolean"} %) (.write r (format " %s: %s;\n" % %)))
Expand Down

0 comments on commit 91fb541

Please sign in to comment.