Skip to content

Commit 5b53994

Browse files
committed
Merge pull request DefinitelyTyped#3074 from philippsimon/patch-1
Allow param and fparam be executed without a parameterName
2 parents 11431d7 + 9fbcb51 commit 5b53994

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

purl/purl.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
// Type definitions for Purl 2.3.1
1+
// Type definitions for Purl 2.3.1
22
// Project: https://github.com/allmarkedup/purl
33
// Definitions by: Daniel Ferreira Monteiro Alves <https://github.com/danfma>
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

66
declare module purl {
77

8+
interface ParameterMap {
9+
[parameterName: string]: string;
10+
}
11+
812
export interface Url {
913

1014
/**
@@ -15,6 +19,7 @@ declare module purl {
1519
/**
1620
* The .param() method is used to return the values of querystring parameters.
1721
*/
22+
param(): ParameterMap;
1823
param(parameterName: string): string;
1924

2025
/**
@@ -27,6 +32,7 @@ declare module purl {
2732
/**
2833
* Gets a parameter from the fragment segment
2934
*/
35+
fparam(): ParameterMap;
3036
fparam(parameterName: string): string;
3137

3238
/**

0 commit comments

Comments
 (0)