-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
good first issueA small, encapsulated issue, ideal for a new contributor to Svelte to tackle.A small, encapsulated issue, ideal for a new contributor to Svelte to tackle.types / typescript
Description
Describe the bug
In the type definitions for Svelte HTML the type of contenteditable is missing plaintext-only. This raises an obvious type error when trying to use it and can be fixed by adding 'plaintext-only' to the types. Its not yet supported in all browsers and relativley new so I can understand if its not been included for those reasons. Just a very mild annoyance. If this should be added I can quickly PR.
Reproduction
Cannot reproduce in REPL as it does not use TS.
Logs
Type '"plaintext-only"' is not assignable to type '"inherit" | Booleanish | null | undefined'.System Info
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 5.14 GB / 7.72 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 19.7.0 - /usr/local/bin/node
npm: 9.8.1 - /usr/local/bin/npm
pnpm: 8.6.9 - ~/.local/share/pnpm/pnpm
Browsers:
Chrome: 116.0.5845.140Severity
annoyance
LorisSigrist and oscarhermoso
Metadata
Metadata
Assignees
Labels
good first issueA small, encapsulated issue, ideal for a new contributor to Svelte to tackle.A small, encapsulated issue, ideal for a new contributor to Svelte to tackle.types / typescript