MCPcopy Index your code
hub / github.com/coder/coder / normalizeGetTemplatesOptions

Function normalizeGetTemplatesOptions

site/src/api/api.ts:377–389  ·  view source on GitHub ↗
(
	options: GetTemplatesOptions | GetTemplatesQuery = {},
)

Source from the content-addressed store, hash-verified

375}>;
376
377function normalizeGetTemplatesOptions(
378 options: GetTemplatesOptions | GetTemplatesQuery = {},
379): Record<string, string> {
380 if ("q" in options) {
381 return options;
382 }
383
384 const params: Record<string, string> = {};
385 if (options.deprecated !== undefined) {
386 params.deprecated = String(options.deprecated);
387 }
388 return params;
389}
390
391type SearchParamOptions = TypesGen.Pagination & {
392 q?: string;

Callers 1

ApiMethodsClass · 0.85

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected