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
ci: Deploy to Cloudflare using a Github Action (#1159)
* ci: use Cloudflare worker github action
* give job a name
* fix env
* fix project name
* functions
* add workflow_dispath
* stick with out dir for now
* try different action
* fix name
* format
* remove environment from inputs
* remove ()
* add pull_request
* on changes
* add wrangler
* update readme
* break out into different jobs
* update commands
* go back to official action
* add comment
* fix permissions
* remove trailing comma
* add code block around errors
* add back output
* wrap in console
* add header
* disable color output
* update wrangler
* remove err
* run on all branches for PRs
Copy file name to clipboardExpand all lines: markdown-pages/docs/manual/typescript-integration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ In case of the TypeScript project using `Bundler` module resolution, `allowImpor
201
201
202
202
Open any relevant `*.res` file and add `@genType` annotations to any bindings / values / functions to be used from JavaScript. If an annotated value uses a type, the type must be annotated too. See e.g. [Hooks.res](https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/gentype_tests/typescript-react-example/src/Hooks.res).
203
203
204
-
Save the file and rebuild the project via `npm run res:build` or similar. You should now see a `*.gen.tsx` file with the same name (e.g. `MyComponent.res` -> `MyComponent.gen.tsx`).
204
+
Save the file and rebuild the project via `npm run build:res` or similar. You should now see a `*.gen.tsx` file with the same name (e.g. `MyComponent.res` -> `MyComponent.gen.tsx`).
205
205
206
206
Any values exported from `MyComponent.res` can then be imported from TypeScript. For example:
0 commit comments