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
Copy file name to clipboardExpand all lines: docs/typescript.md
-84Lines changed: 0 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,93 +27,9 @@ Do declare a type for an unassigned variable when a type can not be inferred.
27
27
const someVar: string
28
28
```
29
29
30
-
## Migration guide & contribution opportunity 🎉
31
-
32
-
We'd love your help in migrating our codebase!
33
-
34
-
1. Visit the [Typescript Migration Issue](https://github.com/ethereum/ethereum-org-website/issues/6392) and make a comment to get assigned to a file from the complete list of pending files to be migrated.
35
-
2. Run `yarn start` to generate the `src/gatsby-types.d.ts` file. More on this in the "GraphQL Typegen" section.
36
-
3. Convert the js file into a `.ts` or `.tsx` file in case the file includes some jsx in it.
37
-
4. Try to follow one already migrated file similar to the one you are migrating.
38
-
39
-
- For `pages`,
40
-
41
-
- Run again `yarn start` in order to update the `src/gatsby-types.d.ts` file with the page's query type.
42
-
- Use the Gatsby type `PageProps`, passing the generated GraphQL query type + the context type args.
-Incaseyouneedtoextendyourcomponentwithsomeothercomponent's interface, import the latter with the following naming convention `I{NameOfTheComponent}Props`.
91
-
92
-
```tsx
93
-
import Link, { IProps as ILinkProps } from "./Link"
0 commit comments