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
{{ message }}
Repository navigation
app.d.ts incorrectly defines 'data' prop on DS classes #105
/** * Extra properties * @return \{ key, value } */
data: { key: str; value: all}
That defines 'data' as an object with two firm props, 'key' and 'value'. It doesn't define a dictionary of key/value pairs.
The @return statement is for functions, not props.
Proposal for replacement in all .d.ts files for 'data':
/** * Extra properties * @type {{ [key: string]: any }} */data;
Please check for other type definitions that use @return or which define literals rather than a dictionary.
Activity