Skip to content

Commit

Permalink
fixes some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rolivegab committed Oct 19, 2023
1 parent 421e67c commit 76d335c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/assertOf.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertOf } from "./assertOf.js";
import { isLiteral } from "./isLiteral";
import { isObjectOf } from "./isObjectOf";
import { isLiteral } from "./isLiteral.js";
import { isObjectOf } from "./isObjectOf.js";

const a: unknown = { 123: 5, 456: "123" };

Expand Down
2 changes: 1 addition & 1 deletion src/assertOf.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert } from "./assert.js";
import { NarrowOf } from "./types.js";
import type { NarrowOf } from "./types.js";

export const assertOf: <T>(
target: unknown,
Expand Down
2 changes: 1 addition & 1 deletion src/ensureOf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NarrowOf } from "./types";
import type { NarrowOf } from "./types.js";

export const ensureOf =
<T, Target>(f: NarrowOf<T>) =>
Expand Down
2 changes: 1 addition & 1 deletion src/hasElementsOf.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isArray } from "./isArray.js";
import type { NarrowOf, FixedArrayValues } from "./types";
import type { NarrowOf, FixedArrayValues } from "./types.js";

export const hasElementsOf =
<NarrowFuncFixedArray extends readonly NarrowOf<unknown>[]>(
Expand Down
2 changes: 1 addition & 1 deletion src/isOneStringLiteralOf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TypesFromFixedArray } from "./types";
import type { TypesFromFixedArray } from "./types.js";

export const isOneStringLiteralOf =
<T extends string[]>(...args: T) =>
Expand Down

0 comments on commit 76d335c

Please sign in to comment.