mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 23:44:11 +02:00
feat(archives): bootstrap what-is-archives from Github
This commit is contained in:
Vendored
+25
-1
@@ -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[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user