Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netlify_cms_config/collections/files.ts>File

Netlify CMS config generator
Latest
class File
import { File } from "https://deno.land/x/netlify_cms_config@v0.3.2/collections/files.ts";

Constructors

new
File(label: string, config?: FileOptions)

Properties

parent: Files | undefined

Methods

fields(fields: Field[]): this

Maps editor UI widgets to field-value pairs in the saved file. The order of the fields determines their order in the editor UI and in the saved file.

file(file: string): this

Specify the collection file

toJSON(): Record<string, unknown>

Return the collection as JSON