Skip to content

Commit

Permalink
Fix minor typos (vercel#31161)
Browse files Browse the repository at this point in the history
Hello,
I've found some minor typos in the documentation, solved with this PR.
  • Loading branch information
KonstHardy authored Nov 8, 2021
1 parent 39ef77c commit 5f38b18
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/basic-features/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ npm run dev
# ...
```

You're now ready to start converting files from `.js` to `.tsx` and leveraging the benefits of TypeScript!.
You're now ready to start converting files from `.js` to `.tsx` and leveraging the benefits of TypeScript!

> A file named `next-env.d.ts` will be created in the root of your project. This file ensures Next.js types are picked up by the TypeScript compiler. **You cannot remove it or edit it** as it can change at any time.
Expand Down
2 changes: 1 addition & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ You can learn more about Cypress and Continuous Integration from these resources

- [Cypress Continuous Integration Docs](https://docs.cypress.io/guides/continuous-integration/introduction)
- [Cypress GitHub Actions Guide](https://on.cypress.io/github-actions)
- [Official Cypress Github Action](https://github.com/cypress-io/github-action)
- [Official Cypress GitHub Action](https://github.com/cypress-io/github-action)

## Playwright

Expand Down
2 changes: 1 addition & 1 deletion examples/with-chakra-ui-typescript/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Index = () => (
<Main>
<Text>
Example repository of <Code>Next.js</Code> + <Code>chakra-ui</Code> +{' '}
<Code>typescript</Code>.
<Code>TypeScript</Code>.
</Text>

<List spacing={3} my={0}>
Expand Down
4 changes: 2 additions & 2 deletions examples/with-firebase-hosting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ npm run deploy
yarn deploy
```

## Typescript
## TypeScript

To use Typescript, simply follow [Typescript setup](https://nextjs.org/learn/excel/typescript/setup) as normal (package.json scripts are already set).
To use TypeScript, simply follow [TypeScript setup](https://nextjs.org/learn/excel/typescript/setup) as normal (package.json scripts are already set).

i.e: `npm install --save-dev typescript @types/react @types/node`

Expand Down
2 changes: 1 addition & 1 deletion examples/with-mobx-state-tree-typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MobX State Tree with Typescript example
# MobX State Tree with TypeScript example

Usually splitting your app state into `pages` feels natural but sometimes you'll want to have global state for your app. This is an example on how you can use mobx that also works with our universal rendering approach.

Expand Down
2 changes: 1 addition & 1 deletion examples/with-mobx-state-tree-typescript/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Store = types
timer = setInterval(() => {
// mobx-state-tree doesn't allow anonymous callbacks changing data.
// Pass off to another action instead (need to cast self as any
// because typescript doesn't yet know about the actions we're
// because TypeScript doesn't yet know about the actions we're
// adding to self here)
;(self as any).update()
}, 1000)
Expand Down

0 comments on commit 5f38b18

Please sign in to comment.