We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe0ace commit 6fa1befCopy full SHA for 6fa1bef
src/06-identity-functions/29-finite-state-machine.problem.ts
@@ -1,7 +1,7 @@
1
-// import { F } from "ts-toolbelt";
+type NoInfer<T> = [T][T extends any ? 0 : never];
2
3
/**
4
- * Clue: F.NoInfer is part of the solution!
+ * Clue: NoInfer is part of the solution!
5
*
6
* You'll need to modify the interface below
7
* to get it to work.
@@ -17,7 +17,7 @@ interface FSMConfig<TState extends string> {
17
}
18
19
export const makeFiniteStateMachine = <TState extends string>(
20
- config: FSMConfig<TState>
+ config: FSMConfig<TState>,
21
) => config;
22
23
const config = makeFiniteStateMachine({
0 commit comments