import { ITemplate } from "codesandbox-import-util-types" ; import * as LZString from "lz-string" ; export interface IFiles { [ key ] : { content : string ; isBinary : boolean ; } ; } function compress ( input ) { return LZString . compressToBase64 ( input ) . replace ( /\+/g , `-` ) . replace ( /\//g , `_` ) . replace ( /=+$/ , `` ) ; } export function getParameters ( parameters ) { return compress ( JSON . stringify ( parameters ) ) ; }