Skip to content

Commit 4d6be66

Browse files
Fix "Redeclare" typo (typescript-cheatsheets#705)
1 parent 3bbc27f commit 4d6be66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ export function ClickableList<T>(props: ClickableListProps<T>) {
16961696
##### Option 2 - Redeclare forwardRef
16971697

16981698
```ts
1699-
// Redecalare forwardRef
1699+
// Redeclare forwardRef
17001700
declare module "react" {
17011701
function forwardRef<T, P = {}>(
17021702
render: (props: P, ref: React.Ref<T>) => React.ReactElement | null

docs/basic/getting-started/forward-create-ref.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function ClickableList<T>(props: ClickableListProps<T>) {
9595
### Option 2 - Redeclare forwardRef
9696

9797
```ts
98-
// Redecalare forwardRef
98+
// Redeclare forwardRef
9999
declare module "react" {
100100
function forwardRef<T, P = {}>(
101101
render: (props: P, ref: React.Ref<T>) => React.ReactElement | null

0 commit comments

Comments
 (0)