Skip to content

Commit

Permalink
Move to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdevey committed Apr 23, 2022
1 parent 64d4f79 commit afb46c1
Show file tree
Hide file tree
Showing 6 changed files with 524 additions and 5 deletions.
119 changes: 119 additions & 0 deletions build/index.js

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

1 change: 1 addition & 0 deletions build/index.js.map

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

5 changes: 2 additions & 3 deletions index.js → index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ora from "ora";
dotenv.config();

// Log in to NR api
const api = new LDBWSClient(process.env.TOKEN)
const api = new LDBWSClient(process.env.TOKEN!!)

// Get the station code args
const crs = process.argv[2].toUpperCase();
Expand Down Expand Up @@ -107,5 +107,4 @@ function formatString(string, maxLength) {
result += " "
}
return result
}

}
Loading

0 comments on commit afb46c1

Please sign in to comment.