-
Notifications
You must be signed in to change notification settings - Fork 30
How to add something to the interface to avoid loosing on re-generation? #54
Comments
@j2L4e ^^^ Let me know where you want the // !code or the // ! code if you do want them. |
@murbanowicz we could generate the following
This would allow both regeneration and extra properties. would this help your case, @murbanowicz? |
Yeah! Look great to me. I think others would also benefit in the future (TS with Feathers improving but still not straightforward to work with, so I think community using TS with Feathers will grow especially with that great support from you!) |
Does this work? interface UserBase {
name: string;
// ... everything that's generated now
}
export interface User extends UserBase {
// !code: more // !end
} |
Published as f+/cli v0.7.33 using generator v0.6.32 |
Follow on issue #56 |
@murbanowicz Hi. I've written an article referencing this issue. You are mentioned in it. Do you want any changes to those references? The draft is at https://medium.com/@eddyystop/keep-your-app-up-to-the-minute-with-feathers-plus-cli-57021f24e548 |
I need to modify the interface file to reflect e.g. data injected in hooks etc
but at the moment I do not find the place in the code which would allow to do it with avoiding loosing it at re-generation.
Any advice?
The text was updated successfully, but these errors were encountered: