UNPKG

valve-key-values

Version:

A simple parser of the KeyValues format from Valve

10 lines (9 loc) 300 B
declare namespace VKV { type VDFValue<T> = Record<string, string | T>; export interface VDFObject extends VDFValue<VDFObject> { } export function parse<T extends VDFObject>(input: string): T; export function strigify(root: VDFObject): string; export {}; } export default VKV;