@@ -36,13 +36,13 @@ declare module "packageurl-js" {
36
36
37
37
export type PurlTypeValidator = ( purl : PackageURL , throws : boolean ) => boolean
38
38
39
- export type PurlComponentEntry = ReadOnly < {
39
+ export type PurlComponentEntry = Readonly < {
40
40
encode : PurlComponentEncoder
41
41
normalize : PurlComponentStringNormalizer
42
42
validate : PurlComponentValidator
43
43
} >
44
44
45
- export type PurlTypeEntry = ReadOnly < {
45
+ export type PurlTypeEntry = Readonly < {
46
46
normalize : PurlTypNormalizer
47
47
validate : PurlTypeValidator
48
48
} >
@@ -51,7 +51,7 @@ declare module "packageurl-js" {
51
51
* Collection of PURL component encode, normalize, and validate methods.
52
52
* @see {@link https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#rules-for-each-purl-component specification }
53
53
*/
54
- export type PurlComponent = ReadOnly < {
54
+ export type PurlComponent = Readonly < {
55
55
type : PurlComponentEntry
56
56
namespace : PurlComponentEntry
57
57
name : PurlComponentEntry
@@ -66,7 +66,7 @@ declare module "packageurl-js" {
66
66
* Known qualifiers names.
67
67
* @see {@link https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#known-qualifiers-keyvalue-pairs specification }
68
68
*/
69
- export type PurlQualifierNames = ReadOnly < {
69
+ export type PurlQualifierNames = Readonly < {
70
70
RepositoryUrl :'repository_url' ,
71
71
DownloadUrl : 'download_url' ,
72
72
VcsUrl : 'vcs_url' ,
@@ -78,7 +78,7 @@ declare module "packageurl-js" {
78
78
* Collection of PURL type normalize and validate methods.
79
79
* @see {@link https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#known-purl-types specification }
80
80
*/
81
- export type PurlType = ReadOnly < {
81
+ export type PurlType = Readonly < {
82
82
alpm : PurlTypeEntry
83
83
apk : PurlTypeEntry
84
84
bitbucket : PurlTypeEntry
@@ -184,9 +184,10 @@ declare module "packageurl-js" {
184
184
]
185
185
}
186
186
187
+ // @ts -ignore
187
188
export const PurlComponent = < PurlComponent > { }
188
-
189
+ // @ts -ignore
189
190
export const PurlQualifierNames = < PurlQualifierNames > { }
190
-
191
+ // @ts -ignore
191
192
export const PurlType = < PurlType > { }
192
193
}
0 commit comments