From a8379e3bc9b506aaff99deb02bc6b41811734420 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 28 Jun 2019 16:38:48 +0900 Subject: [PATCH] Use as const #5089 --- src/models/id.ts | 2 +- src/server/api/endpoints/users/show.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/id.ts b/src/models/id.ts index be2cccfe3b..cdb8259073 100644 --- a/src/models/id.ts +++ b/src/models/id.ts @@ -1,4 +1,4 @@ export const id = () => ({ - type: 'varchar' as 'varchar', + type: 'varchar' as const, length: 32 }); diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index 30660aed3a..d17dd51c0a 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -52,7 +52,7 @@ export const meta = { message: 'Failed to resolve remote user.', code: 'FAILED_TO_RESOLVE_REMOTE_USER', id: 'ef7b9be4-9cba-4e6f-ab41-90ed171c7d3c', - kind: 'server' as 'server' + kind: 'server' as const }, noSuchUser: {