@ethlete/core 5.0.0-next.38 → 5.0.0-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/ethlete-core.d.ts
CHANGED
|
@@ -1674,7 +1674,7 @@ type StaticProviderDefinition<T> = {
|
|
|
1674
1674
|
* `injectX()` below it. Nothing is created until the subtree provides it.
|
|
1675
1675
|
*
|
|
1676
1676
|
* Assign the result to one `const`, name the halves with {@link toProvideFn} / {@link toInjectFn} /
|
|
1677
|
-
* {@link toToken}, and put
|
|
1677
|
+
* {@link toToken}, and put a `__PURE__` annotation comment on each of those declarations. Never destructure
|
|
1678
1678
|
* the definition: that declaration cannot be tree-shaken, so it ships the factory's whole closure to
|
|
1679
1679
|
* every consumer. Enforced by `ethlete/no-impure-top-level-provider`.
|
|
1680
1680
|
*/
|
|
@@ -1694,7 +1694,7 @@ declare const defineStaticProvider: <T>(defaultValue?: T, options?: ProviderDefi
|
|
|
1694
1694
|
* resolves to `defaultValue` in an app that never provides it.
|
|
1695
1695
|
*/
|
|
1696
1696
|
declare const defineStaticRootProvider: <T>(defaultValue?: T, options?: ProviderDefinitionOptions) => StaticProviderDefinition<T>;
|
|
1697
|
-
/** The `provideX` half of a provider definition. A call, so
|
|
1697
|
+
/** The `provideX` half of a provider definition. A call, so a `__PURE__` annotation makes it droppable. */
|
|
1698
1698
|
declare const toProvideFn: <TDefinition extends {
|
|
1699
1699
|
readonly provide: unknown;
|
|
1700
1700
|
}>(definition: TDefinition) => TDefinition["provide"];
|