enonic-types
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -39,5 +39,3 @@ import { Region } from "./portal"; | ||
readonly data: A; | ||
readonly x: { | ||
readonly [key: string]: string; | ||
}; | ||
readonly x: Record<string, any>; | ||
readonly page: Page<PageConfig>; | ||
@@ -223,3 +221,3 @@ readonly attachments: Attachments; | ||
readonly data: A; | ||
readonly x?: string; | ||
readonly x?: Record<string, any>; | ||
} | ||
@@ -275,5 +273,3 @@ export interface ModifyContentParams<A extends object> { | ||
}; | ||
readonly x: { | ||
readonly [key: string]: string; | ||
}; | ||
readonly x: Record<string, any>; | ||
readonly page: Page<PageConfig>; | ||
@@ -280,0 +276,0 @@ readonly attachments: object; |
@@ -14,2 +14,8 @@ import { ByteSource, Content, Site } from "./content"; | ||
} | ||
interface ByPath { | ||
readonly path: string; | ||
} | ||
interface ById { | ||
readonly id: string; | ||
} | ||
export interface PortalLibrary { | ||
@@ -67,5 +73,3 @@ getComponent<A>(): Component<A> | null; | ||
} | ||
export interface AttachmentUrlParams { | ||
readonly id?: string; | ||
readonly path?: string; | ||
export declare type AttachmentUrlParams = XOR<ById, ByPath> & { | ||
readonly name?: string; | ||
@@ -76,13 +80,9 @@ readonly label?: string; | ||
readonly type?: "server" | "absolute"; | ||
} | ||
export interface ComponentUrlParams { | ||
readonly id?: string; | ||
readonly path?: string; | ||
}; | ||
export declare type ComponentUrlParams = XOR<ById, ByPath> & { | ||
readonly component?: string; | ||
readonly type?: "server" | "absolute"; | ||
readonly params?: Params; | ||
} | ||
export interface ImageUrlParams { | ||
readonly id?: string; | ||
readonly path?: string; | ||
}; | ||
export declare type ImageUrlParams = XOR<ById, ByPath> & { | ||
readonly scale: string; | ||
@@ -95,9 +95,7 @@ readonly quality?: number; | ||
readonly params?: Params; | ||
} | ||
export interface PageUrlParams { | ||
readonly id?: string; | ||
readonly path?: string; | ||
}; | ||
export declare type PageUrlParams = XOR<ById, ByPath> & { | ||
readonly type?: "server" | "absolute"; | ||
readonly params?: Params; | ||
} | ||
}; | ||
export interface LoginUrlParams { | ||
@@ -137,1 +135,2 @@ readonly idProvider?: string; | ||
} | ||
export {}; |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -27,8 +27,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.19.2", | ||
"@typescript-eslint/parser": "^2.19.2", | ||
"@typescript-eslint/eslint-plugin": "^2.21.0", | ||
"@typescript-eslint/parser": "^2.21.0", | ||
"eslint": "^6.8.0", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^3.7.5" | ||
"typescript": "^3.8.2" | ||
} | ||
} |
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
39890
34