Skip to content

Remove enum from TS starter code #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025
Merged
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
6 changes: 1 addition & 5 deletions compiled_starters/typescript/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import * as fs from 'fs';
const args = process.argv.slice(2);
const command = args[0];

enum Commands {
Init = "init",
}

switch (command) {
case Commands.Init:
case "init":
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

Expand Down
6 changes: 1 addition & 5 deletions solutions/typescript/01-gg4/code/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import * as fs from 'fs';
const args = process.argv.slice(2);
const command = args[0];

enum Commands {
Init = "init",
}

switch (command) {
case Commands.Init:
case "init":
fs.mkdirSync(".git", { recursive: true });
fs.mkdirSync(".git/objects", { recursive: true });
fs.mkdirSync(".git/refs", { recursive: true });
Expand Down
8 changes: 2 additions & 6 deletions solutions/typescript/01-gg4/diff/app/main.ts.diff
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
@@ -1,24 +1,20 @@
@@ -1,20 +1,16 @@
import * as fs from 'fs';

const args = process.argv.slice(2);
const command = args[0];

enum Commands {
Init = "init",
}

switch (command) {
case Commands.Init:
case "init":
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- console.error("Logs from your program will appear here!");
-
Expand Down
6 changes: 1 addition & 5 deletions starter_templates/typescript/code/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import * as fs from 'fs';
const args = process.argv.slice(2);
const command = args[0];

enum Commands {
Init = "init",
}

switch (command) {
case Commands.Init:
case "init":
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

Expand Down
Loading