Skip to content

Commit

Permalink
fix: options could be null - close #42
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Apr 10, 2020
1 parent 03d5017 commit 81db8eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ export interface TsResolverOptions {
export function resolve(
source: string,
file: string,
options: TsResolverOptions = {},
options: TsResolverOptions | null,
): {
found: boolean
path?: string | null
} {
options = options || {}

log('looking for:', source)

// don't worry about core node modules
Expand Down

2 comments on commit 81db8eb

@kuoruan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make a new release for this?

@JounQin
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.