UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

12 lines (11 loc) 380 B
export type Buffer = object; type Fs<T> = { readonly readFileSync: (name: string, encoding: 'utf8') => string; readonly writeFileSync: (name: string, content: string) => T; }; export type Node<T> = { readonly fs: Fs<T>; }; export declare const getVersion: <T>(fs: Fs<T>) => string; export declare const updateVersion: <T>(node: Node<T>) => readonly [T, T]; export {};