Skip to content
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

chore(deps-dev): bump typescript from 5.2.2 to 5.4.5 #481

Merged
merged 1 commit into from
Apr 21, 2024
Merged
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
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
"husky": "^8.0.3",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"typescript": "^5.2.2",
"typescript": "^5.4.5",
"vitest": "^0.34.6"
}
}

Unchanged files with check annotations Beta

class FileNameExtractor {
static extractFileName(dirtyFileName: string): string {
const [_, filename] = dirtyFileName.match(/\d+_([\w-]+.[\w-]+).\w+/) || [];

Check warning on line 3 in kata/6 kyu/extract-file-name/index.ts

GitHub Actions / ci / build

'_' is assigned a value but never used
return filename;
}
type Type = 'electric' | 'fire' | 'grass' | 'water';
type EffectivenessTable = Record<Type, any>;

Check warning on line 3 in kata/6 kyu/pokemon-damage-calculator/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
const effectivenessTable: EffectivenessTable = {
electric: {
function prefill<T>(n: any, v: T): T[] {

Check warning on line 1 in kata/6 kyu/prefill-an-array/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
const parsed = parseInt(n, 10);
if (parsed !== Math.abs(n)) {
if (matches[currentBrace]) {
stack.push(currentBrace);
} else {
const lastBrace: any = stack.pop();

Check warning on line 20 in kata/6 kyu/valid-braces/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
if (currentBrace !== matches[lastBrace]) {
return false;
function isNumber(n: any): n is number {

Check warning on line 1 in kata/7 kyu/area-of-a-circle/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
return typeof n === 'number';
}
function circleArea(radius: any): number | false {

Check warning on line 5 in kata/7 kyu/area-of-a-circle/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
if (!isNumber(radius) || radius <= 0) {
return false;
}
function flatten(arr: any[]): any[] {

Check warning on line 1 in kata/7 kyu/flatten-1/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type

Check warning on line 1 in kata/7 kyu/flatten-1/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
return [].concat(...arr);
}
function f(n?: any): number | boolean {

Check warning on line 1 in kata/7 kyu/gauss-needs-help-sums-of-a-lot-of-numbers/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
if (!Number.isInteger(n) || n < 1) {
return false;
}
function last<T>(...list: T[] | T[][]): T {
const lastElement: any = list[list.length - 1];

Check warning on line 2 in kata/7 kyu/last/index.ts

GitHub Actions / ci / build

Unexpected any. Specify a different type
return lastElement[lastElement.length - 1] || lastElement;
}