-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix types in JSDoc #9
base: master
Are you sure you want to change the base?
Conversation
@@ -4,7 +4,6 @@ export default class Cookie | |||
* Make a new Cookie instance. | |||
* | |||
* @param {string} namespace | |||
* @return {void} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No return tag for constructor.
* @param {mixed} value | ||
* @return {mixed} | ||
* @param {*} value | ||
* @return {*} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP: mixed
JS: *
this.set(key, null, 'Thu, 01 Jan 1970 00:00:01 GMT'); | ||
this.set(key, '', 'Thu, 01 Jan 1970 00:00:01 GMT'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
is not compatible with string
/** @type {string[]} */ | ||
const initialValue = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sets the type for the empty array.
@adamlaki This is not a business PR but a scientific PR 👺 |
tsconfig.json