Skip to content

Commit

Permalink
chore: update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS committed Jul 3, 2024
1 parent d2c3751 commit a1e0945
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"lint:other": "npm run prettier -- --check",
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
"unimported": "npx unimported --no-cache",
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"prepublishOnly": "npm run package",
Expand Down Expand Up @@ -157,7 +157,7 @@
"source-map-explorer": "^2.5.3",
"stylelint": "^15.11.0",
"ts-jest": "^29.1.5",
"typescript": "^5.4.3"
"typescript": "^5.5.3"
},
"peerDependencies": {
"prop-types": "^15.8.1",
Expand Down
4 changes: 1 addition & 3 deletions src/containers/Tenant/Acl/Acl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from 'react';

import type {DefinitionListItem} from '@gravity-ui/components';
import {DefinitionList} from '@gravity-ui/components';
//TODO: fix import
import type {DefinitionListSingleItem} from '@gravity-ui/components/build/esm/components/DefinitionList/types';

import {ResponseError} from '../../../components/Errors/ResponseError';
import {Loader} from '../../../components/Loader';
Expand Down Expand Up @@ -109,7 +107,7 @@ function getAclListItems(acl?: TACE[]): DefinitionListItem[] {
}
return undefined;
})
.filter(Boolean) as DefinitionListSingleItem[],
.filter((v) => v !== undefined),
};
});
}
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "@gravity-ui/tsconfig/tsconfig",
"compilerOptions": {
"outDir": "build/esm",
"module": "esnext",
"target": "ES2018",
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"lib": ["dom", "dom.iterable", "esnext"],
"allowSyntheticDefaultImports": true,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"extends": "./tsconfig",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"noEmit": false,
"importHelpers": true
},
"include": ["src/**/*", "package.json"],
"include": ["src/**/*"],
"exclude": ["src/setup*", "src/index.tsx", "**/__tests__", "**/tests"]
}

0 comments on commit a1e0945

Please sign in to comment.