enonic-types
Advanced tools
Comparing version 0.0.10 to 0.0.11
import { Component } from "./portal"; | ||
export interface ContentLibrary { | ||
get<A>(params: GetContentParams): Content<A, {}> | null; | ||
get<A>(params: GetContentParams): Content<A, never> | 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, PageConfig = any>(params: GetSiteParams): Site<A, PageConfig>; | ||
getSite<A, PageConfig = never>(params: GetSiteParams): Site<A, PageConfig>; | ||
getSiteConfig<A>(params: GetSiteConfigParams): A; | ||
@@ -24,3 +24,3 @@ createMedia<A>(params: CreateMediaParams): Content<A>; | ||
} | ||
export interface Content<A, PageConfig = any> { | ||
export interface Content<A, PageConfig = never> { | ||
readonly _id: string; | ||
@@ -138,3 +138,3 @@ readonly _name: string; | ||
} | ||
export interface Site<A, PageConfig = any> { | ||
export interface Site<A, PageConfig = never> { | ||
readonly _id: string; | ||
@@ -141,0 +141,0 @@ readonly _name: string; |
@@ -16,3 +16,3 @@ import { ByteSource, Content, Site } from "./content"; | ||
getComponent<A>(): Component<A> | null; | ||
getContent<A, PageConfig = any>(): Content<A, PageConfig> | null; | ||
getContent<A, PageConfig = never>(): Content<A, PageConfig> | null; | ||
getIdProviderKey(): string | null; | ||
@@ -19,0 +19,0 @@ /** |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
30311