Skip to content

Commit

Permalink
Merge pull request #60 from drashland/fix-type-errors
Browse files Browse the repository at this point in the history
[fix-type-errors] Fix compilation errors when using unstable
  • Loading branch information
ebebbington authored Sep 16, 2020
2 parents f974fdb + 643bc6d commit 7926659
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { asserts } from "./src/rhum_asserts.ts";
import { MockServerRequestFn } from "./src/mocks/server_request.ts";
import { TestCase } from "./src/test_case.ts";
import {
import type {
ITestPlan,
RhumMocks,
} from "./src/interfaces.ts";
import {
import type {
Constructor,
Stubbed,
} from "./src/types.ts";
import { MockBuilder } from "./src/mock_builder.ts";

export { Constructor, Stubbed } from "./src/types.ts";
export type { Constructor, Stubbed } from "./src/types.ts";
export { MockBuilder } from "./src/mock_builder.ts";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MockServerRequestFn } from "./mocks/server_request.ts";
import type { MockServerRequestFn } from "./mocks/server_request.ts";

/**
* @remarks
Expand Down
2 changes: 1 addition & 1 deletion src/mock_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Mocked, Constructor } from "./types.ts";
import type { Mocked, Constructor } from "./types.ts";

export class MockBuilder<T> {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/test_case.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const encoder = new TextEncoder();
import { ITestPlan, ITestCase } from "./interfaces.ts";
import type { ITestPlan, ITestCase } from "./interfaces.ts";

/**
* A class to help create uniform test case objects.
Expand Down

0 comments on commit 7926659

Please sign in to comment.