ts-std-lib
Version:
A standard library for typescript
13 lines (12 loc) • 401 B
TypeScript
/// <reference types="node" />
import { URL } from 'url';
import { Json } from './Json';
import { IJsonSerializer, jsonSerializer } from './IJsonSerializer';
/**
* Json serializer for the node URL class
*/
export declare class URLJsonSerializer implements IJsonSerializer<URL> {
readonly [jsonSerializer] = true;
serialize(object: URL): Json;
deserialize(json: Json): URL;
}