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
Yes, I think the confusion probably comes from the README which lists (err, name) as the arguments to the callback, but the prose of the text correctly states that it actually returns the value, not the name of the property (which is hopefully obvious from the name of the function).
Edit: Just to be clear, the first argument of getProperty() is the name, the second argument of the callback function is the value
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/286e356cfaf3ad52bcd2da1e9bfc79f16b664a9b/types/dbus/index.d.ts#L30C71-L30C77
getProperty(name: string, callback: (err: Error | null,
name: stringvalue: any) => void): void;The text was updated successfully, but these errors were encountered: