Skip to content

Commit

Permalink
fix(api): Remove expectations from loader input
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jan 7, 2024
1 parent f7bd8fd commit 9834b9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/kitten-scientists/source/UserScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ export class UserScript {

/**
* Import settings from a URL.
* This is an experimental feature, and only allows using profiles from
* https://kitten-science.com/ at this time.
*
* @param url - The URL of the profile to load.
*/
Expand Down Expand Up @@ -283,8 +281,8 @@ export class UserScript {
* @param subject.v The version in the engine state.
* @returns An engine state.
*/
static unknownAsEngineStateOrThrow(subject?: { v?: string }): EngineState {
const v = subject?.v;
static unknownAsEngineStateOrThrow(subject?: unknown): EngineState {
const v = (subject as { v?: string })?.v;
if (!isNil(v) && typeof v === "string") {
if (v.startsWith("2")) {
return subject as EngineState;
Expand Down

0 comments on commit 9834b9c

Please sign in to comment.