Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modulo5/lista-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
35 changes: 35 additions & 0 deletions modulo5/lista-typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions modulo5/lista-typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "lista-typescript",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "tsc && node ./build/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^4.7.2"
}
}
13 changes: 13 additions & 0 deletions modulo5/lista-typescript/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* Ex 01

function saudacao(nome:string, data:string){

let dataparastring:string[] = data.split("/")

return (`Olá me chamo ${nome}, nasci no dia ${dataparastring[0]} do mês de ${dataparastring[1]} do ano de ${dataparastring[2]}`)

}

console.log(saudacao("Rodrigo","25/03/1996" )) */


11 changes: 11 additions & 0 deletions modulo5/lista-typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es6", /* Specify ECMAScript target version */
"module": "commonjs", /* Specify module code generation */
"sourceMap": true, /* Generates corresponding '.map' file. */
"outDir": "./build", /* Redirect output structure to the directory. */
"rootDir": "./src", /* Specify the root directory of input files. */
"removeComments": true, /* Do not emit comments to output. */
"noImplicitAny": true /* Raise error on declarations with an implied 'any' type. */
}
}