@schedule-x/resize
Advanced tools
Comparing version 1.46.5 to 1.46.6
@@ -330,8 +330,19 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
interface PluginBase { | ||
name: string; | ||
// TODO v2: change to `beforeRender` | ||
beforeInit?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
beforeInit?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
// TODO v2: change to `onRender` and remove $app parameter | ||
init?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
init?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
destroy?(): void; | ||
@@ -338,0 +349,0 @@ } |
@@ -330,8 +330,19 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
interface PluginBase { | ||
name: string; | ||
// TODO v2: change to `beforeRender` | ||
beforeInit?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
beforeInit?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
// TODO v2: change to `onRender` and remove $app parameter | ||
init?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
init?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
destroy?(): void; | ||
@@ -338,0 +349,0 @@ } |
@@ -330,8 +330,19 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
interface PluginBase { | ||
name: string; | ||
// TODO v2: change to `beforeRender` | ||
beforeInit?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
beforeInit?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
// TODO v2: change to `onRender` and remove $app parameter | ||
init?($app: CalendarAppSingleton): void; | ||
/** | ||
* use a recursive partial on the $app interface, in order to not break any third party plugins | ||
* when we add new properties to the $app interface | ||
* */ | ||
init?($app: RecursivePartial<CalendarAppSingleton>): void; | ||
destroy?(): void; | ||
@@ -338,0 +349,0 @@ } |
{ | ||
"name": "@schedule-x/resize", | ||
"version": "1.46.5", | ||
"version": "1.46.6", | ||
"description": "Resize events in the Schedule-X calendar", | ||
@@ -29,3 +29,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "a6d558b007f37f644b8812ea693dbe6dc55305f0" | ||
"gitHead": "f35c0d86451edc0708328c9401c77a81aeed4b8a" | ||
} |
96594
2554