json-light
Version:
Allow to extend yaml or json files configuration
22 lines (21 loc) • 549 B
TypeScript
export interface TypeSolver {
type(data: any): string;
}
export interface JsonLightService {
json(value: any): any;
}
export interface CompressorOptions {
type?: string;
mapping?: boolean;
}
export interface Compressor {
compress(data: any, options?: CompressorOptions): any;
}
export interface DecompressorOptions {
type?: string;
}
export interface Decompressor {
decompress(data: any, options?: DecompressorOptions): any;
}
export interface JsonLight extends TypeSolver, JsonLightService, Compressor, Decompressor {
}