From 6450f3256e0baafa9df2019a036bb737dfb5708c Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sat, 21 Jun 2025 17:29:47 -0400 Subject: [PATCH] chore: update Token/TokenOptions types to use SystemType and TokenType --- src/types/common/token-options.ts | 7 +++++-- src/types/common/token.ts | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/types/common/token-options.ts b/src/types/common/token-options.ts index 114a669..ca1bdb5 100644 --- a/src/types/common/token-options.ts +++ b/src/types/common/token-options.ts @@ -1,6 +1,9 @@ +import type { SystemType } from '@/types/common/system-types'; +import type { TokenType } from '@/types/common/token-types'; + export interface TokenOptions { - system_type: number; - token_type: number; + system_type: SystemType; + token_type: TokenType; pid: number; access_level?: number; title_id?: bigint; diff --git a/src/types/common/token.ts b/src/types/common/token.ts index daf0eef..b3ab168 100644 --- a/src/types/common/token.ts +++ b/src/types/common/token.ts @@ -1,6 +1,9 @@ +import type { SystemType } from '@/types/common/system-types'; +import type { TokenType } from '@/types/common/token-types'; + export interface Token { - system_type: number; - token_type: number; + system_type: SystemType; + token_type: TokenType; pid: number; access_level?: number; title_id?: bigint;