Interface GistFile

Represents a single file within a GitHub Gist.

interface GistFile {
    content?: string;
    filename: string;
    language: null | string;
    raw_url: string;
    size: number;
    truncated?: boolean;
    type: string;
}

Properties

content?: string

File content (only present in single-gist responses)

filename: string

File name

language: null | string

Programming language detected

raw_url: string

URL to fetch the raw file content

size: number

File size in bytes

truncated?: boolean

Whether the file content was truncated

type: string

MIME type of the file