This commit is contained in:
21
types/global.d.ts
vendored
21
types/global.d.ts
vendored
@@ -2,6 +2,27 @@ interface Sites {
|
||||
[key: string]: Site
|
||||
}
|
||||
|
||||
interface ApiResult<T> {
|
||||
data: T
|
||||
count: number
|
||||
}
|
||||
|
||||
interface ApiOptions {
|
||||
method?: string
|
||||
filter?: any
|
||||
sort?: string
|
||||
lookup?: string
|
||||
limit?: number
|
||||
offset?: number
|
||||
projection?: string
|
||||
headers?: {
|
||||
[key: string]: string
|
||||
}
|
||||
params?: {
|
||||
[key: string]: string
|
||||
}
|
||||
}
|
||||
|
||||
interface Site {
|
||||
path: string
|
||||
showTeaser: boolean
|
||||
|
||||
Reference in New Issue
Block a user