Allow param and fparam be executed without a parameterName

This commit is contained in:
Philipp Simon Schmidt 2014-11-02 01:04:13 +00:00
parent 0202fa0112
commit 9fbcb5108e

8
purl/purl.d.ts vendored
View File

@ -1,10 +1,14 @@
// Type definitions for Purl 2.3.1
// Type definitions for Purl 2.3.1
// Project: https://github.com/allmarkedup/purl
// Definitions by: Daniel Ferreira Monteiro Alves <https://github.com/danfma>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module purl {
interface ParameterMap {
[parameterName: string]: string;
}
export interface Url {
/**
@ -15,6 +19,7 @@ declare module purl {
/**
* The .param() method is used to return the values of querystring parameters.
*/
param(): ParameterMap;
param(parameterName: string): string;
/**
@ -27,6 +32,7 @@ declare module purl {
/**
* Gets a parameter from the fragment segment
*/
fparam(): ParameterMap;
fparam(parameterName: string): string;
/**