UNPKG

@featurevisor/core

Version:

Core package of Featurevisor for Node.js usage

16 lines (15 loc) 531 B
/** * If we want to add more built-in parsers, * add them to this object with new file extension as the key, * and a function that takes file content as string and returns parsed object as the value. */ export declare const parsers: { [key: string]: CustomParser; }; export type BuiltInParser = keyof typeof parsers; export interface CustomParser { extension: string; parse: <T>(content: string, filePath?: string) => T; stringify: (content: any) => string; } export type Parser = BuiltInParser | CustomParser;