Comparing version 0.2.8 to 0.2.9
import { IOEither } from "fp-ts/lib/IOEither"; | ||
import { EnonicError } from "./errors"; | ||
import { ThymeleafRenderOptions } from "enonic-types/lib/thymeleaf"; | ||
export declare function renderUnsafe<A>(view: any, model?: A, options?: ThymeleafRenderOptions): string; | ||
export declare function render<A>(view: any, model?: A, options?: ThymeleafRenderOptions): IOEither<EnonicError, string>; | ||
export declare function getUnsafeRenderer<A>(view: any, options?: ThymeleafRenderOptions): (model: A) => string; | ||
export declare function getRenderer<A>(view: any, options?: ThymeleafRenderOptions): (model: A) => IOEither<EnonicError, string>; | ||
export interface ResourceKey { | ||
applicationKey: string; | ||
path: string; | ||
uri: string; | ||
root: boolean; | ||
name: string; | ||
extension: string; | ||
} | ||
export declare function renderUnsafe<A>(view: ResourceKey, model?: A, options?: ThymeleafRenderOptions): string; | ||
export declare function render<A>(view: ResourceKey, model?: A, options?: ThymeleafRenderOptions): IOEither<EnonicError, string>; | ||
export declare function getUnsafeRenderer<A>(view: ResourceKey, options?: ThymeleafRenderOptions): (model: A) => string; | ||
export declare function getRenderer<A>(view: ResourceKey, options?: ThymeleafRenderOptions): (model: A) => IOEither<EnonicError, string>; |
{ | ||
"name": "enonic-fp", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -10,3 +10,4 @@ "main": "lib/index.js", | ||
"build": "npm run clean && tsc", | ||
"lint": "eslint --fix 'src/**/*.ts'" | ||
"lint": "eslint --fix 'src/**/*.ts'", | ||
"prepublish": "npm run lint && npm run build" | ||
}, | ||
@@ -13,0 +14,0 @@ "repository": { |
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
45449
739