Skip to main content
Module

x/domain_functions/src/input-resolvers.ts>inputFromSearch

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
variable inputFromSearch
import { inputFromSearch } from "https://deno.land/x/domain_functions@v2.6.0/src/input-resolvers.ts";

Parses the given URLSearchParams into an object.

Examples

const parsed = inputFromSearch(new URLSearchParams('a=1&b=2')) // ^? { a: '1', b: '2' }

type

(queryString: URLSearchParams) => unknown