chore(workflows): Fix merge conflicts with master

This commit is contained in:
olivermrbl committed 2022-12-07 20:28:32 +01:00
commit 2b2ea157a6
890 files changed
+101176 -38064

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
// IGatsbyPage, SystemPath and copied/inlined from redux/types so this file is self contained
type SystemPath = string
type Identifier = string
export interface IGatsbyPage {
internalComponentName: string
path: string
matchPath: undefined | string
component: SystemPath
componentChunkName: string
isCreatedByStatefulCreatePages: boolean
context: Record<string, unknown>
updatedAt: number
// eslint-disable-next-line @typescript-eslint/naming-convention
pluginCreator___NODE: Identifier
pluginCreatorId: Identifier
componentPath: SystemPath
ownerNodeId: Identifier
}
// also inlined
export interface IQueryResult {
errors?: Array<Error>
data?: any
}
export class GraphQLEngine {
constructor({ dbPath }: { dbPath: string })
runQuery(query: string, context: Record<string, any>): Promise<IQueryResult>
findPageByPath(pathName: string): IGatsbyPage | undefined
}