import { getSearchQueryParamsAsObject } from "../getSearchQueryParamsAsObject/getSearchQueryParamsAsObject" ; import { TinCanLaunchData } from "./TinCanLaunchData" ; export function getTinCanLaunchData ( ) { if ( typeof location === "undefined" ) throw new Error ( "Environment does not support location.search" ) ; const params = getSearchQueryParamsAsObject ( location . search ) ; return params ; }