From 9fbcb5108ecda264110ce15d2a9d5d7ad65968fe Mon Sep 17 00:00:00 2001 From: Philipp Simon Schmidt Date: Sun, 2 Nov 2014 01:04:13 +0000 Subject: [PATCH] Allow param and fparam be executed without a parameterName --- purl/purl.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/purl/purl.d.ts b/purl/purl.d.ts index 00312595e3..0686b6269d 100644 --- a/purl/purl.d.ts +++ b/purl/purl.d.ts @@ -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 // 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; /**