File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ def template_string
99
99
end
100
100
101
101
def erb_template
102
- erb = ERB . new ( template_string . gsub ( "\n <% end %>" , "<% end %>" ) )
102
+ # erb = ERB.new(template_string.gsub("\n<% end %>", "<% end %>"))
103
+ erb = ERB . new ( template_string )
103
104
erb . filename = absolute_template_path
104
105
erb
105
106
end
Original file line number Diff line number Diff line change @@ -45,6 +45,31 @@ def aggregate_name
45
45
entity_name
46
46
end
47
47
end
48
+
49
+ def entity_generators
50
+ types_depended_on . select ( &:entity? ) . map do |entity |
51
+ Services ::EntityGenerator . new ( entity , elements_to_generate )
52
+ end
53
+ rescue => e
54
+ binding . pry
55
+ raise
56
+ end
57
+
58
+ def primary_key_name
59
+ primary_key_attribute
60
+ end
61
+
62
+ def primary_key_ts_type
63
+ foobara_type_to_ts_type ( primary_key_type )
64
+ end
65
+
66
+ def entity_name_downcase
67
+ entity_name [ 0 ] . downcase + entity_name [ 1 ..]
68
+ end
69
+
70
+ def attributes_type_ts_type
71
+ binding . pry
72
+ end
48
73
end
49
74
end
50
75
end
Original file line number Diff line number Diff line change 1
- <% binding.pry %>
2
-
3
- interface <%= error_name %> <
1
+ export interface <%= error_name %> <
4
2
keyT extends string,
5
3
pathT extends string[] = [],
6
4
runtime_pathT extends string[] = []
You can’t perform that action at this time.
0 commit comments