Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IModel

A contents model.

Hierarchy

  • IModel

Index

Properties

Optional Readonly chunk

chunk: number

The chunk of the file upload.

Readonly content

content: any

The optional file content.

Readonly created

created: string

File creation timestamp.

Readonly format

format: FileFormat

The format of the file content.

Notes

Only relevant for type: 'file'

Optional indices

indices: readonly number[]

The indices of the matched characters in the name.

Readonly last_modified

last_modified: string

Last modified timestamp.

Readonly mimetype

mimetype: string

Specify the mime-type of file contents.

Notes

Only non-null when content is present and type is "file".

Readonly name

name: string

Name of the contents file.

Notes

Equivalent to the last part of the path field.

Readonly path

path: string

The full file path.

Notes

It will not start with /, and it will be /-delimited.

Optional Readonly size

size: number

The size of then file in bytes.

Readonly type

The type of file.

Readonly writable

writable: boolean

Whether the requester has permission to edit the file.

Generated using TypeDoc