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

JW8-11009 Upgrade TS to 3.8 - Add import type #3631

Merged
merged 5 commits into from Mar 23, 2020
Merged

Conversation

jnatalzia
Copy link
Contributor

@jnatalzia jnatalzia commented Mar 6, 2020

Blocked until babel/babel#11171 is merged

This PR will...

Upgrade typescript to 3.8

Why is this Pull Request needed?

Lots of cool features to take advantage of

Are there any points in the code the reviewer needs to double check?

Did I miss any import types

Are there any Pull Requests open in other repos which need to be merged with this?

https://github.com/jwplayer/jwplayer-commercial/pull/7467

Addresses Issue(s):

JW8-11009

Checklist

  • Jenkins builds and unit tests are passing
  • I have reviewed the automated results

@jnatalzia jnatalzia requested a review from robwalch as a code owner March 6, 2020 16:44
@jwplayer-robot
Copy link

MULTI Build for commit 4ae2c6d did not complete (FAILURE).
🏗️▪️ jwplayer build SUCCESS
🏗️▪️ jwplayer unit tests FAILURE
🏗️▪️ jwplayer-commercial build NOT_STARTED
🏗️▪️ jwplayer-commercial unit tests NOT_STARTED
🥒.js Allure Report NOT_STARTED
🍆 Manual Tests
📺 Views

@mamaddox
Copy link
Collaborator

mamaddox commented Mar 6, 2020

I think these might have been missed:
src/js/templates/logo.ts
src/js/utils/clock.ts
src/js/utils/default.ts
src/js/templates/floating-close-button.ts

@jwplayer-robot
Copy link

⚠️ MULTI Build for commit b0195f5 is unstable (UNSTABLE).
🏗️▪️ jwplayer build SUCCESS
🏗️▪️ jwplayer unit tests SUCCESS
🏗️▪️ jwplayer-commercial build SUCCESS
🏗️▪️ jwplayer-commercial unit tests SUCCESS
🥒.js Allure Report UNSTABLE
🍆 Manual Tests
📺 Views

Copy link
Contributor

@robwalch robwalch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With "importsNotUsedAsValues": "error", in tsconfig:

$ tsc --noEmit             
src/js/controller/async-item.ts:4:1 - error TS1371: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.

4 import Model from 'controller/model';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/js/controller/async-item.ts:5:1 - error TS1371: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.

5 import ApiPublic from 'api/api';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/js/program/shared-media-pool.ts:1:1 - error TS1371: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.

1 import { MediaElementPoolInt } from 'program/media-element-pool';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/js/utils/defaults.ts:1:1 - error TS1371: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.

1 import { GenericObject } from '../types/generic.type';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/js/view/controls/templates/slider.ts:1:1 - error TS1371: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.

1 import { HTMLTemplateString } from 'types/generic.type';
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@jwplayer-robot
Copy link

MULTI Build for commit e3a7ff6 did not complete (FAILURE).
🏗️▪️ jwplayer build FAILURE
🏗️▪️ jwplayer unit tests NOT_STARTED
🏗️▪️ jwplayer-commercial build NOT_STARTED
🏗️▪️ jwplayer-commercial unit tests NOT_STARTED
🥒.js Allure Report NOT_STARTED
🍆 Manual Tests
📺 Views

@jwplayer-robot
Copy link

⚠️ MULTI Build for commit 038c1d2 is unstable (UNSTABLE).
🏗️▪️ jwplayer build SUCCESS
🏗️▪️ jwplayer unit tests SUCCESS
🏗️▪️ jwplayer-commercial build SUCCESS
🏗️▪️ jwplayer-commercial unit tests SUCCESS
🥒.js Allure Report UNSTABLE
🍆 Manual Tests
📺 Views

@jnatalzia jnatalzia merged commit 40b9b52 into master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants