Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
myty committed Sep 24, 2022
1 parent ea4d4bf commit 3f62708
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Composable } from "./composable.ts";
export { PromiseChain } from "./promise-chain.ts";
2 changes: 1 addition & 1 deletion promise-chain.bench.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PromiseChain from "./promise-chain.ts";
import { PromiseChain } from "./promise-chain.ts";
import { TestClass } from "./stubs/test-class.ts";

const iterate = (
Expand Down
2 changes: 1 addition & 1 deletion promise-chain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
assert,
assertEquals,
} from "https://deno.land/std@0.154.0/testing/asserts.ts";
import PromiseChain from "./promise-chain.ts";
import { PromiseChain } from "./promise-chain.ts";
import { TestClass } from "./stubs/test-class.ts";

Deno.test(async function whenTraditionalAsyncChainingItReturnsResult() {
Expand Down
2 changes: 1 addition & 1 deletion promise-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AsyncComposable } from "./types.ts";
* Utility class to wrap a composition class with the intended purpose of chaining methods, specifically useful for
* functions that return Promises. Note: Promise functions and non-promise functions can be mixed.
*/
export default class PromiseChain<T> extends Promise<T> implements Promise<T> {
export class PromiseChain<T> extends Promise<T> implements Promise<T> {
/**
* Create a chaninable class based off of the functions that return "this" or a Promise of "this".
*/
Expand Down

0 comments on commit 3f62708

Please sign in to comment.