MCPcopy Create free account
hub / github.com/angular/angular / ParamMap

Interface ParamMap

packages/router/src/shared.ts:47–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 * @publicApi
46 */
47export interface ParamMap {
48 /**
49 * Reports whether the map contains a given parameter.
50 * @param name The parameter name.
51 * @returns True if the map contains the given parameter, false otherwise.
52 */
53 has(name: string): boolean;
54 /**
55 * Retrieves a single value for a parameter.
56 * @param name The parameter name.
57 * @return The parameter's single value,
58 * or the first value if the parameter has multiple values,
59 * or `null` when there is no such parameter.
60 */
61 get(name: string): string | null;
62 /**
63 * Retrieves multiple values for a parameter.
64 * @param name The parameter name.
65 * @return An array containing one or more values,
66 * or an empty array if there is no such parameter.
67 *
68 */
69 getAll(name: string): string[];
70
71 /** Names of the parameters in the map. */
72 readonly keys: string[];
73}
74
75class ParamsAsMap implements ParamMap {
76 private params: Params;

Callers 23

readPackageFunction · 0.65
applyWithProgramMethod · 0.65
provideClientHydrationFunction · 0.65
addHostMethod · 0.65
onFetchMethod · 0.65
initializeMethod · 0.65
lookupVersionByHashMethod · 0.65
assignVersionMethod · 0.65
applyWithProgramMethod · 0.65
createSamplerFunction · 0.65
runner_spec.tsFile · 0.65
createExtensionFunction · 0.65

Implementers 3

ParamsAsMappackages/router/src/shared.ts
HttpHeaderspackages/common/http/src/headers.ts
HttpParamspackages/common/http/src/params.ts

Calls

no outgoing calls

Tested by

no test coverage detected