mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Allow param and fparam be executed without a parameterName
This commit is contained in:
parent
0202fa0112
commit
9fbcb5108e
8
purl/purl.d.ts
vendored
8
purl/purl.d.ts
vendored
@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user