diff --git a/packages/website/src/components/hooks/useHashState.ts b/packages/website/src/components/hooks/useHashState.ts index bcda3430f25..21538642891 100644 --- a/packages/website/src/components/hooks/useHashState.ts +++ b/packages/website/src/components/hooks/useHashState.ts @@ -129,19 +129,19 @@ const retrieveStateFromLocalStorage = (): Partial | undefined => { const state: Partial = {}; if (hasOwnProperty('ts', config)) { - const ts: unknown = config.ts; + const ts = config.ts; if (typeof ts === 'string') { state.ts = ts; } } if (hasOwnProperty('jsx', config)) { - const jsx: unknown = config.jsx; + const jsx = config.jsx; if (typeof jsx === 'boolean') { state.jsx = jsx; } } if (hasOwnProperty('showAST', config)) { - const showAST: unknown = config.showAST; + const showAST = config.showAST; if (typeof showAST === 'boolean') { state.showAST = showAST; } else if (typeof showAST === 'string') { diff --git a/packages/website/src/components/lib/has-own-property.ts b/packages/website/src/components/lib/has-own-property.ts index 6a085207825..d8a57917ebd 100644 --- a/packages/website/src/components/lib/has-own-property.ts +++ b/packages/website/src/components/lib/has-own-property.ts @@ -1,4 +1,4 @@ -export function hasOwnProperty( +export function hasOwnProperty( property: Y, object: X, ): object is X & Record {