Skip to content

Commit

Permalink
Merge pull request #677 from tadayosi/676-list-mbeaninfoerror
Browse files Browse the repository at this point in the history
jolokia.js - Add type for MBeanInfo error to ListResponse
  • Loading branch information
grgrzybek committed Apr 25, 2024
2 parents 08902b1 + c54e72a commit e0967d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/javascript/src/main/javascript/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,11 @@ export interface ListRequestOptions extends BaseRequestOptions {
error?: (error: ErrorResponse) => void;
}

export type ListResponse = JmxDomains | JmxDomain | MBeanInfo;
export type ListResponse = JmxDomains | JmxDomain | MBeanInfo | MBeanInfoError;

export type JmxDomains = Record<string, JmxDomain>;

export type JmxDomain = Record<string, MBeanInfo>;
export type JmxDomain = Record<string, MBeanInfo | MBeanInfoError>;

export interface MBeanInfo {
desc: string;
Expand All @@ -605,6 +605,10 @@ export interface MBeanInfo {
notif?: Record<string, MBeanNotification>;
}

export interface MBeanInfoError {
error: string;
}

export interface MBeanAttribute {
type: string;
desc: string;
Expand Down

0 comments on commit e0967d0

Please sign in to comment.