@fgv/ts-web-extras
Version:
Browser-compatible utilities and FileTree implementations
53 lines (25 loc) • 818 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [parseContextFilter](./ts-web-extras.parsecontextfilter.md)
## parseContextFilter() function
Converts context filter token to context object Example: "language=en-US\|territory=US" -<!-- -->> { language: "en-US", territory: "US" }
**Signature:**
```typescript
export declare function parseContextFilter(contextFilter: string): Record<string, string>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
contextFilter
</td><td>
string
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Record<string, string>