Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Stricter TypeScript compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Nov 19, 2020
1 parent da2593f commit 122c425
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/animation-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RenderSchedule, RenderScheduleOptions } from './render-schedule';
import type { RenderSchedule, RenderScheduleOptions } from './render-schedule';
import { newRenderSchedule } from './render-scheduler';
import Mock = jest.Mock;
import Mocked = jest.Mocked;
Expand Down
2 changes: 1 addition & 1 deletion src/animation-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { customRenderScheduler } from './custom-render-scheduler';
import { RenderQueue } from './render-queue';
import { RenderScheduler } from './render-scheduler';
import type { RenderScheduler } from './render-scheduler';

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion src/async-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { asyncRenderScheduler } from './async-render-scheduler';
import { RenderSchedule } from './render-schedule';
import type { RenderSchedule } from './render-schedule';

describe('asyncRenderScheduler', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/async-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { customRenderScheduler } from './custom-render-scheduler';
import { RenderQueue } from './render-queue';
import { RenderScheduler } from './render-scheduler';
import type { RenderScheduler } from './render-scheduler';

/**
* @internal
Expand Down
6 changes: 3 additions & 3 deletions src/custom-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { customRenderScheduler } from './custom-render-scheduler';
import { RenderQueue } from './render-queue';
import { RenderScheduleOptions } from './render-schedule';
import { RenderExecution } from './render-shot';
import type { RenderQueue } from './render-queue';
import type { RenderScheduleOptions } from './render-schedule';
import type { RenderExecution } from './render-shot';
import Mock = jest.Mock;

describe('CustomRenderScheduler', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/custom-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* @packageDocumentation
* @module @proc7ts/render-scheduler
*/
import { RenderQueue } from './render-queue';
import type { RenderQueue } from './render-queue';
import { RenderSchedule, RenderScheduleConfig, RenderScheduleOptions } from './render-schedule';
import { RenderScheduler } from './render-scheduler';
import { RenderExecution, RenderShot } from './render-shot';
import type { RenderScheduler } from './render-scheduler';
import type { RenderExecution, RenderShot } from './render-shot';

/**
* Custom render scheduler options.
Expand Down
4 changes: 2 additions & 2 deletions src/immediate-render-scheduler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RenderSchedule, RenderScheduleConfig, RenderScheduleOptions } from './render-schedule';
import { RenderScheduler } from './render-scheduler';
import { RenderExecution, RenderShot } from './render-shot';
import type { RenderScheduler } from './render-scheduler';
import type { RenderExecution, RenderShot } from './render-shot';

/**
* Render scheduler that executes render shots immediately.
Expand Down
2 changes: 1 addition & 1 deletion src/manual-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ManualRenderScheduler, newManualRenderScheduler } from './manual-render-scheduler';
import { RenderSchedule } from './render-schedule';
import type { RenderSchedule } from './render-schedule';

describe('manualRenderScheduler', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/manual-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { customRenderScheduler } from './custom-render-scheduler';
import { RenderQueue } from './render-queue';
import { RenderScheduler } from './render-scheduler';
import type { RenderScheduler } from './render-scheduler';

/**
* A render scheduler that executes scheduled render shots on request.
Expand Down
2 changes: 1 addition & 1 deletion src/noop-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { noopRenderScheduler } from './noop-render-scheduler';
import { RenderSchedule } from './render-schedule';
import type { RenderSchedule } from './render-schedule';

describe('noopRenderScheduler', () => {

Expand Down
4 changes: 2 additions & 2 deletions src/noop-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @packageDocumentation
* @module @proc7ts/render-scheduler
*/
import { RenderSchedule } from './render-schedule';
import { RenderScheduler } from './render-scheduler';
import type { RenderSchedule } from './render-schedule';
import type { RenderScheduler } from './render-scheduler';

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion src/queued-render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { queuedRenderScheduler } from './queued-render-scheduler';
import { RenderSchedule } from './render-schedule';
import type { RenderSchedule } from './render-schedule';
import Mock = jest.Mock;

describe('queuedRenderScheduler', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/queued-render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { customRenderScheduler } from './custom-render-scheduler';
import { RenderQueue } from './render-queue';
import { RenderScheduler } from './render-scheduler';
import type { RenderScheduler } from './render-scheduler';

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion src/render-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @packageDocumentation
* @module @proc7ts/render-scheduler
*/
import { RenderShot } from './render-shot';
import type { RenderShot } from './render-shot';

/**
* A queue of scheduled render shots.
Expand Down
2 changes: 1 addition & 1 deletion src/render-schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @packageDocumentation
* @module @proc7ts/render-scheduler
*/
import { RenderShot } from './render-shot';
import type { RenderShot } from './render-shot';

/**
* Render schedule signature.
Expand Down
2 changes: 1 addition & 1 deletion src/render-scheduler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RenderSchedule, RenderScheduleOptions } from './render-schedule';
import type { RenderSchedule, RenderScheduleOptions } from './render-schedule';
import { newRenderSchedule, RenderScheduler, setRenderScheduler } from './render-scheduler';
import Mock = jest.Mock;

Expand Down
2 changes: 1 addition & 1 deletion src/render-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module @proc7ts/render-scheduler
*/
import { animationRenderScheduler } from './animation-render-scheduler';
import { RenderSchedule, RenderScheduleOptions } from './render-schedule';
import type { RenderSchedule, RenderScheduleOptions } from './render-schedule';

/**
* Render scheduler signature.
Expand Down
2 changes: 1 addition & 1 deletion src/render-shot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @packageDocumentation
* @module @proc7ts/render-scheduler
*/
import { RenderScheduleConfig } from './render-schedule';
import type { RenderScheduleConfig } from './render-schedule';

/**
* Render shot signature.
Expand Down
12 changes: 6 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"compilerOptions": {
"moduleResolution": "node",
"module": "es2015",
"target": "es2018",
"moduleResolution": "Node",
"module": "ES2015",
"target": "ES2018",
"strict": true,
"experimentalDecorators": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"importsNotUsedAsValues": "error",
"noEmitHelpers": true,
"lib": [
"dom",
"es2018"
"DOM",
"ES2018"
],
"types": [
"jest"
Expand Down

0 comments on commit 122c425

Please sign in to comment.