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
The Priority type is not exported from lib/pushover.d.ts. This means it cannot be used as a type in Typescript code, even though it is used to type the corresponding parameter in setPriority(). I have to redeclare it in my code, which is ugly.
Solution: change declare type Priority = -2 | -1 | 0 | 1 | 2; to export declare type Priority = -2 | -1 | 0 | 1 | 2; in lib/pushover.d.ts. The entirety of the change looks like this:
The
Priority
type is not exported fromlib/pushover.d.ts
. This means it cannot be used as a type in Typescript code, even though it is used to type the corresponding parameter insetPriority()
. I have to redeclare it in my code, which is ugly.Solution: change
declare type Priority = -2 | -1 | 0 | 1 | 2;
toexport declare type Priority = -2 | -1 | 0 | 1 | 2;
inlib/pushover.d.ts
. The entirety of the change looks like this:import { IResponse } from './request';
-declare type Priority = -2 | -1 | 0 | 1 | 2;
+export declare type Priority = -2 | -1 | 0 | 1 | 2;
export interface INotificationData {
The same applies to the
Sound
type.I can create a pull request if given access permission, although the change it so trivial it hardly seems necessary.
The text was updated successfully, but these errors were encountered: