We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v8.x
The value attribute now has type of:
value?: string | string[] | null;
in @ ionic\core\dist\types\components\datetime\datetime-interface.d.ts
This does not match the specification given here https://ionicframework.com/docs/api/datetime#datetimechangeeventdetail
interface DatetimeChangeEventDetail { value?: string | null; }
Type should match online documentation.
const handler = (event: CustomEvent<DatetimeChangeEventDetail> & { target: HTMLIonDatetimeElement }) => { new Date(event.detail?.value ?? 0) }
gives typescript error: Type 'string[]' is not assignable to type 'string | number'
none
Ionic:
Ionic CLI : 7.2.0 (C:\Users[...user...]\AppData\Roaming\npm\node_modules@ionic\cli)
Capacitor:
Capacitor CLI : 7.2.0 @capacitor/android : 7.2.0 @capacitor/core : 7.2.0 @capacitor/ios : 7.2.0
Utility:
cordova-res : not installed globally native-run : not installed globally
System:
NodeJS : v22.12.0 (C:\Program Files\nodejs\node.exe) npm : 11.3.0 OS : Windows 10
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
The value attribute now has type of:
in @ ionic\core\dist\types\components\datetime\datetime-interface.d.ts
This does not match the specification given here https://ionicframework.com/docs/api/datetime#datetimechangeeventdetail
Expected Behavior
Type should match online documentation.
Steps to Reproduce
gives typescript error: Type 'string[]' is not assignable to type 'string | number'
Code Reproduction URL
none
Ionic Info
Ionic:
Ionic CLI : 7.2.0 (C:\Users[...user...]\AppData\Roaming\npm\node_modules@ionic\cli)
Capacitor:
Capacitor CLI : 7.2.0
@capacitor/android : 7.2.0
@capacitor/core : 7.2.0
@capacitor/ios : 7.2.0
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v22.12.0 (C:\Program Files\nodejs\node.exe)
npm : 11.3.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: