Skip to content

FileOptions

[<Interface>]
type FileOptions =
    abstract member endings: Endings option with get, set
    abstract member lastModified: float option with get, set
    abstract member type: string option with get, set
    static member Create (?endings: Endings, ?type: string, ?lastModified: float) : FileOptions
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member endings: Endings option with get, set

One of either 'transparent' or 'native'. When set to 'native', line endings in string source parts will be converted to the platform native line-ending as specified by import { EOL } from 'node:os'.

abstract member lastModified: float option with get, set

The last modified date of the file. Default: Date.now().

abstract member type: string option with get, set

The File content-type.

Methods

static member Create (?endings: Endings, ?type: string, ?lastModified: float) : FileOptions