Skip to content

Commit

Permalink
Merge pull request #37 from NaverPayDev/type
Browse files Browse the repository at this point in the history
사용하는 값만 받도록 생성자 파라미터 타입 변경
  • Loading branch information
yongholeeme authored Nov 8, 2024
2 parents 6f334d7 + d2cc84e commit 9b8e652
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-impalas-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@naverpay/nurl": patch
---

[사용하는 값만 받도록 생성자 파라미터 타입 변경](https://github.com/NaverPayDev/nurl/pull/37)
17 changes: 16 additions & 1 deletion src/nurl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,22 @@ import {
refineQueryWithPathname,
} from './utils'

interface URLOptions extends Partial<URL> {
interface URLOptions
extends Partial<
Pick<
URL,
| 'href'
| 'protocol'
| 'host'
| 'hostname'
| 'port'
| 'pathname'
| 'search'
| 'hash'
| 'username'
| 'password'
>
> {
baseUrl?: string
query?: Record<string, string>
}
Expand Down

0 comments on commit 9b8e652

Please sign in to comment.