UNPKG

@tinacms/toolkit

Version:

Tina is a lightweight but powerful toolkit for creating a site editing ui with javascript components. Tina surfaces superpowers for dev’s to create, expand on and customize a simple yet intuitive ui for editing content.

22 lines (18 loc) 507 B
/** */ import { CMS } from '../core'; export declare class GitFile { private cms; relativePath: string; format: (file: any) => string; parse: (content: string) => any; constructor(cms: CMS, relativePath: string, format: (file: any) => string, parse: (content: string) => any); /** * Load the contents of this file at HEAD */ show: () => Promise<any>; commit: () => Promise<void>; reset: () => void; write: (values: any) => void; private get git(); }