Skip to content

Commit e0e597a

Browse files
louisrlipiotrwitek
authored andcommitted
Fix a broken header reference (piotrwitek#181)
* Update behold-the-mighty-tutorial header link to constants. * Generate README.md
1 parent f75a3cc commit e0e597a

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
@@ -1164,7 +1164,7 @@ export const add = (amount: number) => action(ADD, amount);
11641164
// ALTERNATIVE API - allow to use reference to "action-creator" function instead of "type constant"
11651165
// e.g. case getType(increment): return { ... }
11661166
// This will allow to completely eliminate need for "constants" in your application, more info here:
1167-
// https://github.com/piotrwitek/typesafe-actions#behold-the-mighty-tutorial
1167+
// https://github.com/piotrwitek/typesafe-actions#constants
11681168

11691169
// OPTION 1 (with generics):
11701170
// import { createStandardAction } from 'typesafe-actions';

playground/src/features/counters/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const add = (amount: number) => action(ADD, amount);
99
// ALTERNATIVE API - allow to use reference to "action-creator" function instead of "type constant"
1010
// e.g. case getType(increment): return { ... }
1111
// This will allow to completely eliminate need for "constants" in your application, more info here:
12-
// https://github.com/piotrwitek/typesafe-actions#behold-the-mighty-tutorial
12+
// https://github.com/piotrwitek/typesafe-actions#constants
1313

1414
// OPTION 1 (with generics):
1515
// import { createStandardAction } from 'typesafe-actions';

0 commit comments

Comments
 (0)