Skip to content

Commit

Permalink
chore: add individual module types
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Dec 14, 2022
1 parent e56d141 commit 7991828
Show file tree
Hide file tree
Showing 23 changed files with 70 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/applyToDefaults.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { applyToDefaults } from "./index";

export = applyToDefaults;
3 changes: 3 additions & 0 deletions lib/assert.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { assert } from "./index";

export = assert;
3 changes: 3 additions & 0 deletions lib/assertError.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AssertError } from "./index";

export = AssertError;
3 changes: 3 additions & 0 deletions lib/bench.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Bench } from "./index";

export = Bench;
3 changes: 3 additions & 0 deletions lib/block.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { block } from "./index";

export = block;
3 changes: 3 additions & 0 deletions lib/clone.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { clone } from "./index";

export = clone;
3 changes: 3 additions & 0 deletions lib/contain.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { contain } from "./index";

export = contain;
3 changes: 3 additions & 0 deletions lib/deepEqual.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { deepEqual } from "./index";

export = deepEqual;
3 changes: 3 additions & 0 deletions lib/escapeHeaderAttribute.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { escapeHeaderAttribute } from "./index";

export = escapeHeaderAttribute;
3 changes: 3 additions & 0 deletions lib/escapeHtml.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { escapeHtml } from "./index";

export = escapeHtml;
3 changes: 3 additions & 0 deletions lib/escapeJson.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { escapeJson } from "./index";

export = escapeJson;
3 changes: 3 additions & 0 deletions lib/escapeRegex.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { escapeRegex } from "./index";

export = escapeRegex;
3 changes: 3 additions & 0 deletions lib/flatten.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { flatten } from "./index";

export = flatten;
3 changes: 3 additions & 0 deletions lib/ignore.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ignore } from "./index";

export = ignore;
3 changes: 3 additions & 0 deletions lib/intersect.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { intersect } from "./index";

export = intersect;
3 changes: 3 additions & 0 deletions lib/isPromise.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { isPromise } from "./index";

export = isPromise;
3 changes: 3 additions & 0 deletions lib/merge.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { merge } from "./index";

export = merge;
3 changes: 3 additions & 0 deletions lib/once.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { once } from "./index";

export = once;
3 changes: 3 additions & 0 deletions lib/reach.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { reach } from "./index";

export = reach;
3 changes: 3 additions & 0 deletions lib/reachTemplate.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { reachTemplate } from "./index";

export = reachTemplate;
3 changes: 3 additions & 0 deletions lib/stringify.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { stringify } from "./index";

export = stringify;
3 changes: 3 additions & 0 deletions lib/wait.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { wait } from "./index";

export = wait;
4 changes: 4 additions & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as Hoek from '..';
import * as Lab from '@hapi/lab';
import deepEqual = require('../lib/deepEqual');


const { expect } = Lab.types;

// Direct module import
expect.type<Function>(deepEqual);
expect.type<boolean>(deepEqual(1, 2));

interface Foo {
a?: number;
Expand Down

0 comments on commit 7991828

Please sign in to comment.