New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

enonic-types

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-types - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

8

lib/content.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc