From 080d98901e9fdab355940f620282bd0dff4755d9 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Tue, 9 Aug 2022 13:59:28 -0600 Subject: [PATCH] Improve query string compatibility comparison, see https://github.com/phetsims/studio/issues/268 --- phet-types.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phet-types.d.ts b/phet-types.d.ts index eb42d3ec..9f07c65e 100644 --- a/phet-types.d.ts +++ b/phet-types.d.ts @@ -85,13 +85,14 @@ declare var QueryStringMachine: { containsKey: ( key: string ) => boolean; warnings: Warning[]; addWarning: ( key: string, value: IntentionalAny, message: string ) => void; - removeKeyValuePair: ( key: string, value: boolean | object | number | string ) => string; - removeKeyValuePairs: ( key: string, value: ( boolean | object | number | string )[] ) => string; + removeKeyValuePair: ( queryString: string, key: string ) => string; + removeKeyValuePairs: ( queryString: string, keys: string[] ) => string; appendQueryString: ( url: string, tail: string ) => string; getForString: ( s: string, schema: QueryStringMachineSchema, s: string ) => string; getQueryString: ( url: string ) => string; containsKeyForString: ( key: string, s: string ) => boolean; getSingleQueryParameterString: ( key: string, url: string ) => string | null; + getQueryParametersFromString: ( string: string ) => string[]; }; // globals used in Sim.ts