Upgrade typescript to 3.8.2 (#9189)

This commit is contained in:
Jianchao Yang 2020-02-25 08:44:26 -08:00 committed by GitHub
parent 23fc9a7a72
commit 1992069af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 13 additions and 11 deletions

3
.gitignore vendored
View File

@ -58,9 +58,6 @@ rat-results.txt
*.js.map
node_modules
npm-debug.log*
superset-frontend/coverage/*
superset-frontend/cypress/screenshots
superset-frontend/cypress/videos
superset/static/assets
superset/static/version_info.json
yarn-error.log

View File

@ -528,7 +528,7 @@ best practices.
Superset supports a server-wide feature flag system, which eases the incremental development of features. To add a new feature flag, simply modify `superset_config.py` with something like the following:
```
```python
FEATURE_FLAGS = {
'SCOPED_FILTER': True,
}
@ -536,7 +536,7 @@ FEATURE_FLAGS = {
If you want to use the same flag in the client code, also add it to the FeatureFlag TypeScript enum in `superset-frontend/src/featureFlags.ts`. For example,
```
```typescript
export enum FeatureFlag {
SCOPED_FILTER = 'SCOPED_FILTER',
}

View File

@ -25,5 +25,6 @@ stylesheets/*
vendor/*
docs/*
src/dashboard/deprecated/*
src/temp/*
**/node_modules
*.d.ts

4
superset-frontend/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
coverage/*
cypress/screenshots
cypress/videos
src/temp

View File

@ -24728,9 +24728,9 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
},
"typescript": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz",
"integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==",
"version": "3.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.2.tgz",
"integrity": "sha512-EgOVgL/4xfVrCMbhYKUQTdF37SQn4Iw73H5BgCrF1Abdun7Kwy/QZsE/ssAy0y4LxBbvua3PIbFsbRczWWnDdQ==",
"dev": true
},
"typpy": {

View File

@ -220,7 +220,7 @@
"ts-jest": "^24.0.2",
"ts-loader": "^5.4.5",
"tslib": "^1.10.0",
"typescript": "^3.5.3",
"typescript": "^3.8.2",
"url-loader": "^1.0.1",
"webpack": "^4.19.0",
"webpack-assets-manifest": "^3.0.1",

View File

@ -19,7 +19,7 @@
import { safeStringify } from '../../../src/utils/safeStringify';
class Noise {
public next: Noise;
public next?: Noise;
}
describe('Stringify utility testing', () => {

View File

@ -281,7 +281,7 @@ const config = {
hot: true,
index: '', // This line is needed to enable root proxying
inline: true,
stats: { colors: true },
stats: 'minimal',
overlay: true,
port: devserverPort,
// Only serves bundled files from webpack-dev-server