Skip to content

Commit

Permalink
revert: use ts-ignore instead of ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanshatford committed Mar 27, 2024
1 parent 33028b7 commit 83446bf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/templates/core/functions/base64.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-expect-error Buffer may not be found.
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
Expand Down

0 comments on commit 83446bf

Please sign in to comment.