enonic-types
Advanced tools
Comparing version 0.0.7 to 0.0.8
import { Component } from "./portal"; | ||
export interface ContentLibrary { | ||
get<A>(params: GetContentParams): Content<A> | null; | ||
get<A, PageConfig = any>(params: GetContentParams): Content<A, PageConfig> | null; | ||
query<A>(params: QueryContentParams): QueryResponse<A>; | ||
@@ -12,3 +12,3 @@ create<A>(params: CreateContentParams<A>): Content<A>; | ||
move<A>(params: MoveParams): Content<A>; | ||
getSite<A>(params: GetSiteParams): Site<A>; | ||
getSite<A, PageConfig = any>(params: GetSiteParams): Site<A, PageConfig>; | ||
getSiteConfig<A>(params: GetSiteConfigParams): A; | ||
@@ -137,3 +137,3 @@ createMedia<A>(params: CreateMediaParams): Content<A>; | ||
} | ||
export interface Site<A> { | ||
export interface Site<A, PageConfig = any> { | ||
readonly _id: string; | ||
@@ -151,3 +151,3 @@ readonly _name: string; | ||
}; | ||
readonly page: any; | ||
readonly page: Page<PageConfig>; | ||
readonly attachments: object; | ||
@@ -154,0 +154,0 @@ readonly publish: ScheduleParams; |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30295