@beenotung/tslib
Version:
utils library in Typescript
20 lines (19 loc) • 569 B
TypeScript
export declare function parseURLSearchParams<T extends object>(
/**
* @example "http://localhost:4200/profile?id=123&tab=posts"
* @example "?id=123&tab=posts"
* @example "id=123&tab=posts"
* */
url?: string, options?: {
parse?: 'json';
}): T;
export declare function isIP(
/**
* @example "http://192.168.1.109:8100/profile" -> true
* @example "ipfs://192.168.1.109:8080" -> true
* @example "192.168.1.109:8100" -> true
* @example "192.168.1.109" -> true
* @example "::192.168.1.109" -> true
* @example "example.net" -> false
*/
url: string): boolean;