Skip to content

Commit 1d87786

Browse files
committed
chore: add NpmSearchRepository type
1 parent 78c7afb commit 1d87786

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

shared/types/npm-registry.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export interface NpmSearchPackage {
187187
publisher?: NpmSearchPublisher
188188
maintainers?: NpmPerson[]
189189
license?: string
190+
repository?: NpmSearchRepository
190191
}
191192

192193
export interface NpmSearchScore {
@@ -312,6 +313,20 @@ export interface NpmTrustedPublisher {
312313
ciConfigPath?: string
313314
}
314315

316+
/**
317+
* Repository types
318+
* Note: Not covered by @npm/types
319+
*/
320+
export interface NpmSearchRepository {
321+
type: 'git'
322+
url: string
323+
project: string
324+
user: string
325+
host: string
326+
path: string
327+
branch: string
328+
}
329+
315330
/**
316331
* jsDelivr API Types
317332
* Used for package file browsing

0 commit comments

Comments
 (0)