Skip to content

Commit 6fa1bef

Browse files
committed
Update to 29-finite-state-machine
1 parent 8fe0ace commit 6fa1bef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/06-identity-functions/29-finite-state-machine.problem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// import { F } from "ts-toolbelt";
1+
type NoInfer<T> = [T][T extends any ? 0 : never];
22

33
/**
4-
* Clue: F.NoInfer is part of the solution!
4+
* Clue: NoInfer is part of the solution!
55
*
66
* You'll need to modify the interface below
77
* to get it to work.
@@ -17,7 +17,7 @@ interface FSMConfig<TState extends string> {
1717
}
1818

1919
export const makeFiniteStateMachine = <TState extends string>(
20-
config: FSMConfig<TState>
20+
config: FSMConfig<TState>,
2121
) => config;
2222

2323
const config = makeFiniteStateMachine({

0 commit comments

Comments
 (0)