An open API service indexing awesome lists of open source software.

https://github.com/pedro-donoso/proyecto-typescript

Curso TypeScript de Free Code Camp
https://github.com/pedro-donoso/proyecto-typescript

arrays conditional encapsulation functions interfaces types typescript

Last synced: 11 months ago
JSON representation

Curso TypeScript de Free Code Camp

Awesome Lists containing this project

README

          

![capsula](https://github.com/user-attachments/assets/3a6d4726-bbe1-4e30-a322-9172212c2416)

### 1. Instalo Typescript:

```
npm install -g typescript
```

### 2. Creo archivo Typescript: script.ts

### 3. Desde terminal compilo a js

```
tsc script.ts
```

#### Se crea el archivo script.js desde script.ts

![tsc](https://github.com/user-attachments/assets/c4589876-6d72-4f05-bd38-207f590eba93)

### 4. Modo observador (nombre de archivo)

```
tsc script.ts -w
```

### 5. Inicializo Typescript

```
tsc -init
```

#### Se crea el archivo de configuración: tsconfig.json

#### 6. Observar varios archivos typescript a la vez:

```
tsc -w
```
#### Vista por consola:

![consola](https://github.com/user-attachments/assets/c94b3c68-8200-4770-90d1-d644aafd2308)