$d accepts string as input #1113
Labels
❗ p4-important
Priority 4: bugs that violate documented behavior, or significantly impact perf
Type: Bug
Bug or Bug fixes
typescript
Reporting a bug?
Currently
$d
only allowsnumber
orDate
as input via TypeScriptBut we are using
ISO 8601
strings and using these as input is totally fine and renders correctlyBut vue-tsc throws ts compile time errors
Expected behavior
Allow
string
as input for$d
so it doesn't throw a compile time errorReproduction
{{ $d('2022-08-08T08:56:45.846Z') }}
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: