You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know where to post this, so I'm posting this here since this is an actual issue within this package.
As a developer, it is extremely frustrating that I get no help when importing this library via @primeng/themes because everything is set to any. All definitions that come in resemble this from the package:
import * as _primeuix_utils_eventbus from '@primeuix/utils/eventbus';
declare function definePreset(...presets: any[]): any;
declare function updatePreset(...presets: any[]): any;
declare function updatePrimaryPalette(primary?: any): any;
declare function updateSurfacePalette(palette?: any): any;
declare function usePreset(...presets: any[]): any;
declare function useTheme(theme: any): any;
If I want to define a preset, I have no idea what properties I can set, if what I wrote is valid, or what's available to me unless I specifically go look at presets already created by PrimeFaces. This package might as well be straight JavaScript instead of TypeScript.
I think there needs to be an overall shift within PrimeFaces, though I don't know where to bring this up, that the overuse of any has gotten out of hand and degrades the developer experience when using their packages.
Please provide types, thanks!
The text was updated successfully, but these errors were encountered:
Thank you so much for your feedback. To be honest, we made quite a few changes within the packages, which required quick code updates. Right now, everything is stable, but we still need to review and refine the types a bit more. In the latest update, I’ve revised the definitions of the methods mentioned above. I'll improve this further in the next versions.
Hi, I'm using @primeng/themes that imports primeuix
Just wanted to add that this package doesn't even compile if I use typescript 5.8.2, I was testing it because now Angular 19.2 supports typescript 5.8, and it gives me [ERROR] TS2307: Cannot find module '@primeuix/utils/eventbus' or its corresponding type declarations. [plugin angular-compiler] for the file node_modules/@primeng/themes/node_modules/@primeuix/styled/index.d.mts)
Everything works if I add a // @ts-ignore on top of the file, or if I downgrade my project to typescript 5.7.3
I don't know where to post this, so I'm posting this here since this is an actual issue within this package.
As a developer, it is extremely frustrating that I get no help when importing this library via
@primeng/themes
because everything is set toany
. All definitions that come in resemble this from the package:If I want to define a preset, I have no idea what properties I can set, if what I wrote is valid, or what's available to me unless I specifically go look at presets already created by PrimeFaces. This package might as well be straight JavaScript instead of TypeScript.
I think there needs to be an overall shift within PrimeFaces, though I don't know where to bring this up, that the overuse of
any
has gotten out of hand and degrades the developer experience when using their packages.Please provide types, thanks!
The text was updated successfully, but these errors were encountered: