enonic-types
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -1,2 +0,2 @@ | ||
import { Component } from "./portal"; | ||
import { Region } from "./portal"; | ||
export interface ContentLibrary { | ||
@@ -65,3 +65,3 @@ get<A extends object, PageConfig extends object = never>(params: GetContentParams): Content<A, PageConfig> | null; | ||
readonly config: A; | ||
readonly regions: Record<string, Array<Component<any>>>; | ||
readonly regions: Record<string, Region>; | ||
} | ||
@@ -180,11 +180,12 @@ export interface Attachment { | ||
readonly [name: string]: { | ||
readonly buckets: Array<{ | ||
readonly docCount: number; | ||
readonly key: string; | ||
readonly from?: number | string; | ||
readonly to?: number | string; | ||
readonly [key2: string]: any; | ||
}>; | ||
readonly buckets: Array<AggregationsResponseBucket>; | ||
}; | ||
} | ||
export interface AggregationsResponseBucket { | ||
readonly docCount: number; | ||
readonly key: string; | ||
readonly from?: number | string; | ||
readonly to?: number | string; | ||
readonly [key2: string]: any; | ||
} | ||
export interface Highlight { | ||
@@ -191,0 +192,0 @@ encoder?: 'default' | 'html'; |
@@ -8,7 +8,8 @@ import { ByteSource, Content, Site } from "./content"; | ||
readonly config: A; | ||
readonly regions: Record<string, { | ||
components: Array<Component<any>>; | ||
name: string; | ||
}>; | ||
readonly regions: Record<string, Region>; | ||
} | ||
export interface Region { | ||
components: Array<Component<any>>; | ||
name: string; | ||
} | ||
export interface PortalLibrary { | ||
@@ -15,0 +16,0 @@ getComponent<A>(): Component<A> | null; |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
38285
1080