Skip to content

Commit 25c65f6

Browse files
authored
Correct README.md (#2)
* Update README.md The removed lines below are actually allowed in typescript. // ❌ This is not allowed due to type safety // const selectedType2: MediaTypes = MediaTypes.Video; // ❌ This is not allowed due to type safety // const invalidType: MediaTypes = 'image'; * Undo deleted comment
1 parent edede2e commit 25c65f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,6 @@ enum MediaTypes {
314314

315315
const selectedType: MediaTypes = MediaTypes.Image;
316316

317-
// ❌ This is not allowed due to type safety
318-
// const selectedType2: MediaTypes = MediaTypes.Video;
319-
320317
// ✅ Accessing the value
321318
const associatedText: string = MediaTypes.Image;
322319

0 commit comments

Comments
 (0)