Skip to content

Commit

Permalink
[ADD] Chapter 01 finished
Browse files Browse the repository at this point in the history
  • Loading branch information
stivenramireza committed Oct 2, 2022
1 parent 133b609 commit 6323741
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Code editors
.vscode
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { formatDate } from './utils';

const formattedDate: string = formatDate(new Date());

console.log(`Today's date is ${formattedDate}`);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const formatDate = (date: Date): string => {
return date.toLocaleDateString('en-US', { dateStyle: 'medium' });
};

export { formatDate };
File renamed without changes.
3 changes: 1 addition & 2 deletions typescript-essential-training/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"compilerOptions": {
"outDir": "dist",
"target": "ES6",
"noEmit": true,
"allowJs": true,
"checkJs": true
},
"include": ["src/**/*", "index.ts"]
"include": ["src/**/**.ts", "index.ts"]
}

0 comments on commit 6323741

Please sign in to comment.