1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 00:15:35 +02:00
This commit is contained in:
syuilo
2025-09-01 10:01:03 +09:00
parent 18e42cc83d
commit 7000095b44
4 changed files with 7 additions and 5 deletions

View File

@@ -44,10 +44,10 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<script lang="ts">
type SupportedTypes = 'text' | 'password' | 'email' | 'url' | 'tel' | 'number' | 'search';
type SupportedTypes = 'text' | 'password' | 'email' | 'url' | 'tel' | 'number' | 'search' | 'color';
type ModelValueType<T extends SupportedTypes> =
T extends 'number' ? number :
T extends 'text' | 'password' | 'email' | 'url' | 'tel' | 'search' ? string :
T extends 'text' | 'password' | 'email' | 'url' | 'tel' | 'search' | 'color' ? string :
never;
</script>