There was an error while loading. Please reload this page.
1 parent b7a9db4 commit ab01205Copy full SHA for ab01205
docs/types/literal-types.md
@@ -64,7 +64,7 @@ iTakeFoo(test.someProp); // Okay!
64
65
or use a type annotation that helps TypeScript infer the correct thing at the point of declaration:
66
67
-```
+```ts
68
function iTakeFoo(foo: 'foo') { }
69
type Test = {
70
someProp: 'foo',
0 commit comments