Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

File

import type { File } from "https://googleapis.deno.dev/v1/script:v1.ts";

An individual file within a script project. A file is a third-party source code created by one or more developers. It can be a server-side JS code, HTML, or a configuration file. Each script project can contain multiple files.

interface File {
createTime?: Date;
lastModifyUser?: GoogleAppsScriptTypeUser;
name?: string;
source?: string;
type?:
| "ENUM_TYPE_UNSPECIFIED"
| "SERVER_JS"
| "HTML"
| "JSON";
updateTime?: Date;
}

§Properties

§
createTime?: Date
[src]

Creation date timestamp. This read-only field is only visible to users who have WRITER permission for the script project.

§

The defined set of functions in the script file, if any.

§

The user who modified the file most recently. This read-only field is only visible to users who have WRITER permission for the script project.

§
name?: string
[src]

The name of the file. The file extension is not part of the file name, which can be identified from the type field.

§
source?: string
[src]

The file content.

§
type?: "ENUM_TYPE_UNSPECIFIED" | "SERVER_JS" | "HTML" | "JSON"
[src]

The type of the file.

§
updateTime?: Date
[src]

Last modified date timestamp. This read-only field is only visible to users who have WRITER permission for the script project.