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
As of 3.7.0-beta.1, the generator runs template files through EJS, then Babel, and then a beutifier before writing them to your scaffold directory. This means that now we can include things like type definitions, and have an option to include them or not. You can see the first type annotation I added here: auth.service.js#L23.
It would be a fairly large undertaking to manually add type annotations to every file in the whole project, so I'm looking to the community for help. Here's what to do if you'd like to help:
branch off of the canary branch
templates are located in the templates folder.
it would be easiest if type definitions submitted work with both TypeScript and Flow
you can include TS/Flow specific code by using EJS (use filters.ts and filters.flow)
So most of the client is typed in the ts-stuff branch, however almost all of it is scoped to only ts. Could change some of the things that does not inherit from TypeScript definition files to also work with flow. As Flow does not, and seemingly not in the short-term will, support typescript definition files, see flow issue 7.
Particularly useful to split auth functions on client into asynchronous and synchronous versions. Can then at least type the synchronous versions with flow while the asynchronous uses angular promises and thus likely need to stay typed only with TypeScript.
Add type annotations for TypeScript & Flow.
As of 3.7.0-beta.1, the generator runs template files through EJS, then Babel, and then a beutifier before writing them to your scaffold directory. This means that now we can include things like type definitions, and have an option to include them or not. You can see the first type annotation I added here: auth.service.js#L23.
It would be a fairly large undertaking to manually add type annotations to every file in the whole project, so I'm looking to the community for help. Here's what to do if you'd like to help:
canary
branchtemplates
folder.filters.ts
andfilters.flow
)Comment here if you'd like to help out.
The text was updated successfully, but these errors were encountered: