Skip to content

Commit ab01205

Browse files
authored
Language annotation on code block
Creates the pretty syntax highlighting.
1 parent b7a9db4 commit ab01205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/literal-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ iTakeFoo(test.someProp); // Okay!
6464

6565
or use a type annotation that helps TypeScript infer the correct thing at the point of declaration:
6666

67-
```
67+
```ts
6868
function iTakeFoo(foo: 'foo') { }
6969
type Test = {
7070
someProp: 'foo',

0 commit comments

Comments
 (0)