@flyyer/flyyer-lite
Version:
Flyyer.io helper classes and methods to generate smart URL to render images.
11 lines (9 loc) • 351 B
text/typescript
import type { IStringifyOptions } from "qs";
// @ts-expect-error Type
import stringify from "qs/lib/stringify";
/**
* Internally used to convert an object to querystring.
*/
export function toQuery(variables: any, options?: IStringifyOptions) {
return stringify(variables, Object.assign({ addQueryPrefix: false, format: "RFC1738" }, options));
}