Skip to content

Commit

Permalink
make lifecycle callback methods protected - #3385
Browse files Browse the repository at this point in the history
  • Loading branch information
evs-chris committed May 31, 2021
1 parent 81a7feb commit bd995f1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions typings/ractive.d.ts
Expand Up @@ -1699,37 +1699,37 @@ export class Ractive<T extends Ractive<T> = Ractive<any>> implements PropertyOpt
* A lifecycle event that is called when an instance is constructed but before any initialization option has been processed.
* Accepts the instance's initialization options as argument.
*/
onconstruct?(this: T, opts: InitOpts): void;
protected onconstruct?(this: T, opts: InitOpts): void;

/** A lifecycle event that is called when an instance is constructed and is ready to be rendered. */
oninit?(this: T): void;
protected oninit?(this: T): void;

/** A lifecycle event that is called when an instance is constructed and all initialization options have been processed. */
onconfig?(this: T): void;
protected onconfig?(this: T): void;

/** A lifecycle event that is called when the instance is rendered but before transitions start. */
onrender?(this: T): void;
protected onrender?(this: T): void;

/** A lifecycle event that is called when the instance is rendered and all the transitions have completed. */
oncomplete?(this: T): void;
protected oncomplete?(this: T): void;

/** A lifecycle event that is called when ractive.insert() is called. */
oninsert?(this: T): void;
protected oninsert?(this: T): void;

/**
* A lifecycle event that is called whenever `ractive.detach()` is called.
* Note that `ractive.insert()` implicitly calls `ractive.detach()` if needed.
*/
ondetach?(this: T): void;
protected ondetach?(this: T): void;

/** A lifecycle event that is called when ractive.update() is called. */
onupdate?(this: T): void;
protected onupdate?(this: T): void;

/** A lifecycle event that is called when an instance is constructed and is ready to be rendered. */
onunrender?(this: T): void;
protected onunrender?(this: T): void;

/** A lifecycle event that is called when an instance is constructed and is ready to be rendered. */
onteardown?(this: T): void;
protected onteardown?(this: T): void;
}

type Merge<T, U extends readonly any[], X> = {
Expand Down

0 comments on commit bd995f1

Please sign in to comment.