-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathindex.d.ts
53 lines (49 loc) · 1.09 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {drive_v3} from "googleapis"
export interface Options {
/**
* folder ID can be found in Google Drive URLs
* https://drive.google.com/drive/folders/FOLDER_ID
*/
folder: string
//
//---
// All the following options are OPTIONAL
//---
//
/**
* To add default fields values
*/
createPages?: boolean
/** h1 -> h2, h2 -> h3, ... */
demoteHeadings?: boolean
/**
* To exclude some folder in the tree
* It can be folder names or IDs
*/
exclude?: string[]
/**
* For a better stack trace and more information
* Usefull when you open a issue to report a bug
*/
debug?: boolean
}
export interface DocumentFile extends drive_v3.Schema$File {
mimeType: "application/vnd.google-apps.document"
}
export interface RawFolder extends drive_v3.Schema$File {
mimeType: "application/vnd.google-apps.folder"
}
export interface Metadata extends DocumentFile {
id?: DocumentFile["id"]
name: string
slug: string
path: string
description?: string | object
cover: {
image: any
title: any
alt: any
}
markdown: string
breadcrumb: object[]
}