diff --git a/src/utils/public/models/auth-object.model.ts b/src/utils/public/models/api-authorization.model.ts similarity index 89% rename from src/utils/public/models/auth-object.model.ts rename to src/utils/public/models/api-authorization.model.ts index 9f92f33..004a73d 100644 --- a/src/utils/public/models/auth-object.model.ts +++ b/src/utils/public/models/api-authorization.model.ts @@ -7,7 +7,7 @@ /** * @deprecated `username` is no longer required for web API calls. Pass a string containing just your webApiKey instead. */ -interface LegacyAuthObject { +export interface AuthObject { /** * You or your app's exact username on the RetroAchievements.org website. * For example, https://retroachievements.org/user/Scott would have a value @@ -23,4 +23,4 @@ interface LegacyAuthObject { webApiKey: string; } -export type ApiAuthorization = string | LegacyAuthObject; +export type ApiAuthorization = string | AuthObject; diff --git a/src/utils/public/models/index.ts b/src/utils/public/models/index.ts index 04c545d..d9535c7 100644 --- a/src/utils/public/models/index.ts +++ b/src/utils/public/models/index.ts @@ -1,2 +1,2 @@ -export * from "./auth-object.model"; +export * from "./api-authorization.model"; export * from "./award-kind.model";