Skip to content

Commit

Permalink
Improve query string compatibility comparison, see phetsims/studio#268
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 9, 2022
1 parent 586a4cb commit 080d989
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions phet-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 080d989

Please sign in to comment.