Skip to content

Commit

Permalink
Set importsNotUsedAsValues
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatalzia committed Mar 23, 2020
1 parent b0195f5 commit e3a7ff6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/js/controller/async-item.ts
@@ -1,8 +1,8 @@
import { normalizePlaylistItem } from 'playlist/playlist';
// Type only imports
import Item from 'playlist/item';
import Model from 'controller/model';
import ApiPublic from 'api/api';
import type Model from 'controller/model';
import type ApiPublic from 'api/api';

type AsyncCallback = (item: Item, index: number) => Promise<Item | void> | void;

Expand Down
2 changes: 1 addition & 1 deletion src/js/program/shared-media-pool.ts
@@ -1,4 +1,4 @@
import { MediaElementPoolInt } from 'program/media-element-pool';
import type { MediaElementPoolInt } from 'program/media-element-pool';

export default function SharedMediaPool(sharedElement: HTMLVideoElement, mediaPool: MediaElementPoolInt): MediaElementPoolInt {
return Object.assign({}, mediaPool, {
Expand Down
2 changes: 1 addition & 1 deletion src/js/utils/defaults.ts
@@ -1,4 +1,4 @@
import { GenericObject } from '../types/generic.type';
import type { GenericObject } from '../types/generic.type';

// Adds properties to the first object from the rest
// Does not add properties which exist anywhere in the object or it's prototype chain (no shadowing, no overriding)
Expand Down
2 changes: 1 addition & 1 deletion src/js/view/controls/templates/slider.ts
@@ -1,4 +1,4 @@
import { HTMLTemplateString } from 'types/generic.type';
import type { HTMLTemplateString } from 'types/generic.type';

export default (className = '', orientation = ''): HTMLTemplateString => {
return (
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -8,7 +8,8 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"strictPropertyInitialization": true,
"noEmit": true
"noEmit": true,
"importsNotUsedAsValues": "error"
},
"include": [
"src/js"
Expand Down

0 comments on commit e3a7ff6

Please sign in to comment.