enonic-types
Advanced tools
Comparing version 0.3.13 to 0.3.14
declare module "*/lib/guillotine" { | ||
namespace guillotineLib { | ||
type EmptyObject = import("./types").EmptyObject; | ||
type ContextCreationCallbacks<ExecuteContext = EmptyObject> = Record<string, (context: Context<ExecuteContext>, params: import("/lib/graphql").CreateObjectTypeParams<ExecuteContext>) => void>; | ||
interface GuillotineLibrary { | ||
@@ -16,3 +17,3 @@ createSchema<ExecuteContext = EmptyObject>(params?: ContextOptions<ExecuteContext>): import("/lib/graphql").GraphQLSchema; | ||
subscriptionEventTypes?: Array<string>; | ||
creationCallbacks: Record<string, (context: Context<ExecuteContext>, params: import("/lib/graphql").CreateObjectTypeParams<ExecuteContext>) => void>; | ||
creationCallbacks: ContextCreationCallbacks<ExecuteContext>; | ||
[key: string]: unknown; | ||
@@ -19,0 +20,0 @@ } |
@@ -45,1 +45,2 @@ /// <reference path="admin.d.ts" /> | ||
/// <reference path="xslt.d.ts" /> | ||
/// <reference path="cristin.d.ts" /> |
@@ -10,2 +10,6 @@ export interface EnonicLibraryMap { | ||
"/lib/xp/context": typeof import("/lib/xp/context"); | ||
"/lib/cristin": typeof import("/lib/cristin"); | ||
"/lib/cristin/service": typeof import("/lib/cristin/service"); | ||
"/lib/cristin/storage": typeof import("/lib/cristin/storage"); | ||
"/lib/cristin/constants": typeof import("/lib/cristin/constants"); | ||
"/lib/cron": typeof import("/lib/cron"); | ||
@@ -12,0 +16,0 @@ "/lib/text-encoding": typeof import("/lib/text-encoding"); |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "TypeScript types for Enonic XP", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf ./*.d.ts", | ||
"build": "npm run clean && tsc", | ||
"clean": "rimraf ./*.d.ts && rimraf ./generated && rimraf ./*.tgz", | ||
"copy-dts": "copyfiles -u 1 \"src/generated/**/*.d.ts\" .", | ||
"build": "npm run clean && tsc && npm run copy-dts", | ||
"lint": "eslint --fix 'src/**/*.ts'", | ||
"prepublishOnly": "npm run lint && npm run build" | ||
"prepublishOnly": "npm run lint && npm run build", | ||
"json2ts": "json2ts -i src/generated/schemas/ -o src/generated/" | ||
}, | ||
@@ -29,5 +31,7 @@ "repository": { | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"eslint": "^8.8.0", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"json-schema-to-typescript": "^10.1.5", | ||
"prettier": "^2.5.1", | ||
@@ -34,0 +38,0 @@ "rimraf": "^3.0.2", |
@@ -134,2 +134,3 @@ # TypeScript types for Enonic XP | ||
* [ControllerLibrary](./src/controller.ts) | ||
* [CristinLibrary](./src/cristin/index.ts) | ||
* [CronLibrary](./src/cron.ts) | ||
@@ -136,0 +137,0 @@ * [EncodingLibrary](./src/encoding.ts) |
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
263831
62
7135
169
10