doc.silverstripe.org/src/types/index.ts

49 lines
943 B
TypeScript
Raw Normal View History

2019-11-08 03:40:20 +01:00
export interface SingleFileQuery {
data: {
silverstripeDocument: SinglePage
}
};
export interface SinglePage {
title: string;
parent: {
html: string;
parent: {
relativePath: string;
gitRemote: {
ref: string;
webLink: string;
}
}
}
};
export interface SilverstripeDocument {
title: string;
slug: string;
isIndex: boolean;
filePath: string;
introduction: string;
icon: string;
hideChildren: boolean;
hideSelf: boolean;
parentSlug: string;
summary: string;
fileTitle: string;
fileAbsolutePath: string;
}
export interface HierarchyQuery {
allSilverstripeDocument: {
nodes: SilverstripeDocument[]
}
};
export interface ChildrenOfProps {
folderName?: string;
exclude?: string;
currentNode: SilverstripeDocument | null;
asList?: boolean;
};