feat(archives): bootstrap what-is-archives from Github

This commit is contained in:
Jean-Philippe Sirois
2019-11-11 15:40:52 -08:00
parent 51eeb489e5
commit 7cc1e4c899
33 changed files with 578 additions and 242 deletions
+25 -1
View File
@@ -14,6 +14,12 @@ export interface IFolder {
export type IFileOrFolder = IFile | IFolder
export interface IFileQuery {
node: {
relativePath: string
}
}
export interface IFileResourceQuery {
node: {
relativePath: string
childMarkdownRemark: {
@@ -25,8 +31,26 @@ export interface IFileQuery {
}
}
export interface IAllResourcesQuery {
export interface IFileArchiveQuery {
node: {
relativePath: string
}
}
export interface IAllFilesQuery {
allFile: {
edges: IFileQuery[]
}
}
export interface IAllResourcesQuery extends IAllFilesQuery {
allFile: {
edges: IFileResourceQuery[]
}
}
export interface IAllArchivesQuery extends IAllFilesQuery {
allFile: {
edges: IFileArchiveQuery[]
}
}