Skip to content

Commit 75a3693

Browse files
committed
Update types with declared modules
1 parent caec275 commit 75a3693

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/package-url.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
SOFTWARE.
2121
*/
2222

23-
declare module '@socketregistry/packageurl-js' {
23+
declare namespace Purl {
2424
export type PurlQualifiers = { [key: string]: string }
2525

2626
export type PurlComponentEncoder = (comp: any) => string
@@ -190,3 +190,11 @@ declare module '@socketregistry/packageurl-js' {
190190
export const PurlQualifierNames: PurlQualifierNames
191191
export const PurlType: PurlType
192192
}
193+
194+
declare module '@socketregistry/packageurl-js' {
195+
export = Purl
196+
}
197+
198+
declare module 'packageurl-js' {
199+
export = Purl
200+
}

0 commit comments

Comments
 (0)