You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each preset hook has the possibility of adding its own dependencies that needs to be rendered for the given model. It can be done through the `addDependency` function from `renderer` property.
102
+
103
+
```ts
104
+
...
105
+
self({ renderer, content }) {
106
+
renderer.addDependency('import java.util.*;');
107
+
returncontent;
108
+
}
109
+
...
110
+
```
111
+
99
112
## Overriding the default preset
100
113
101
114
Each implemented generator for appropriate language must have defined the default preset. However, we can override it by passing it as the `defaultPreset` parameter in the generator options. Check the example for TypeScript generator:
0 commit comments