intelephense
1.14.41.16.1
lib/lib.decorators.d.tslib/lib.decorators.d.ts+13−15
Index: package/lib/lib.decorators.d.ts
===================================================================
--- package/lib/lib.decorators.d.ts
+++ package/lib/lib.decorators.d.ts
@@ -109,11 +109,11 @@
get(object: This): Value;
};
/**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a `static` element), or before instance initializers are run (when
- * decorating a non-`static` element).
+ * Adds a callback to be invoked either after static methods are defined but before
+ * static initializers are run (when decorating a `static` element), or before instance
+ * initializers are run (when decorating a non-`static` element).
*
* @example
* ```ts
* const bound: ClassMethodDecoratorFunction = (value, context) {
@@ -175,11 +175,11 @@
get(object: This): Value;
};
/**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a `static` element), or before instance initializers are run (when
- * decorating a non-`static` element).
+ * Adds a callback to be invoked either after static methods are defined but before
+ * static initializers are run (when decorating a `static` element), or before instance
+ * initializers are run (when decorating a non-`static` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
@@ -222,11 +222,11 @@
set(object: This, value: Value): void;
};
/**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a `static` element), or before instance initializers are run (when
- * decorating a non-`static` element).
+ * Adds a callback to be invoked either after static methods are defined but before
+ * static initializers are run (when decorating a `static` element), or before instance
+ * initializers are run (when decorating a non-`static` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
@@ -278,11 +278,10 @@
set(object: This, value: Value): void;
};
/**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a `static` element), or before instance initializers are run (when
- * decorating a non-`static` element).
+ * Adds a callback to be invoked immediately after the auto `accessor` being
+ * decorated is initialized (regardless if the `accessor` is `static` or not).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
@@ -375,11 +374,10 @@
set(object: This, value: Value): void;
};
/**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a `static` element), or before instance initializers are run (when
- * decorating a non-`static` element).
+ * Adds a callback to be invoked immediately after the field being decorated
+ * is initialized (regardless if the field is `static` or not).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;