Skip to content

Commit

Permalink
fix(types): add js extensions to d.ts exports
Browse files Browse the repository at this point in the history
This allows users to consume the type definitions in ESM setups.
  • Loading branch information
benasher44 authored and nikku committed Jan 17, 2024
1 parent 0e8cdb3 commit 25e2887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './array';
export * from './collection';
export * from './fn';
export * from './lang';
export * from './object';
export * from './array.js';
export * from './collection.js';
export * from './fn.js';
export * from './lang.js';
export * from './object.js';
2 changes: 1 addition & 1 deletion lib/lang.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
Collection
} from './collection';
} from './collection.js';

export function isUndefined(obj: any): obj is null | undefined;
export function isDefined(obj: any): obj is Exclude<any, null | undefined>;
Expand Down

0 comments on commit 25e2887

Please sign in to comment.