Skip to content

Commit 7c1039c

Browse files
Convert extensions and imports to TypeScript
1 parent 0a87bc1 commit 7c1039c

32 files changed

+486
-480
lines changed

branch.js renamed to branch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import name from './name.js';
1+
import name from './name.ts';
22

33
export default function branch(repo, payload) {
44
return `\n [\`${payload.ref}\`](https://github.com/${repo.name}/tree/${payload.ref})\n in${name(repo.name)}`;

commit.js renamed to commit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import name from './name.js';
1+
import name from './name.ts';
22

33
export default function commit(repo, payload) {
44
// TODO: Find out a new way to get the commit name

date.js renamed to date.ts

File renamed without changes.

downloadPages.js renamed to downloadPages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs';
2-
import headers from './headers.js';
3-
import reportRateLimit from './reportRateLimit.js';
2+
import headers from './headers.ts';
3+
import reportRateLimit from './reportRateLimit.ts';
44

55
/**
66
*
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import login from './login.js';
1+
import login from './login.ts';
22

33
export default { 'User-Agent': login, Authorization: process.argv[2] ? 'token ' + process.argv[2] : '' };

index.js renamed to index.ts

Lines changed: 428 additions & 428 deletions
Large diffs are not rendered by default.

issue.js renamed to issue.ts

File renamed without changes.

login.js renamed to login.ts

File renamed without changes.

name.js renamed to name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import login from './login.js';
1+
import login from './login.ts';
22

33
export default function name(name) {
44
const [user, repo] = name.split('/');

0 commit comments

Comments
 (0)