@wikicasa-dev/svg-icons 1.3.1-alpha.6 → 1.3.1-alpha.8

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/dist/lazy.d.ts CHANGED
@@ -184,10 +184,11 @@ declare const icons: {
184
184
  readonly WikicasaProIcon: () => Promise<typeof import("./svgImages/WikicasaProIcon")>;
185
185
  readonly WikiNerdAgency: () => Promise<typeof import("./svgImages/WikiNerdAgency")>;
186
186
  };
187
- type AvailableIcons = keyof typeof icons;
187
+ export type AvailableIcons = keyof typeof icons;
188
188
  type ExtractIconType<K extends AvailableIcons> = (typeof icons)[K] extends () => Promise<infer T> ? T : never;
189
- type ExtractNamedIconType<K extends AvailableIcons> = ExtractIconType<K> extends {
189
+ export type ExtractNamedIconType<K extends AvailableIcons> = ExtractIconType<K> extends {
190
190
  [P in `${K}`]: infer T;
191
191
  } ? T : never;
192
+ export declare const getIconLoader: <T extends AvailableIcons>(name: T) => Promise<ExtractNamedIconType<T>>;
192
193
  export declare const createLazyIcon: <TIconName extends AvailableIcons>(name: TIconName, hydrateStrategy?: "idle" | "visible") => ExtractNamedIconType<TIconName>;
193
194
  export {};
package/dist/lazy.js CHANGED
@@ -199,5 +199,6 @@ const c = {
199
199
  })
200
200
  );
201
201
  export {
202
- I as createLazyIcon
202
+ I as createLazyIcon,
203
+ m as getIconLoader
203
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/svg-icons",
3
- "version": "1.3.1-alpha.6",
3
+ "version": "1.3.1-alpha.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/lib/index.d.ts",