Skip to content

Commit

Permalink
chore: remove a usage of @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Mar 30, 2024
1 parent ac4ff54 commit 22c88a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/-ember-data/addon/-private/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export interface DS extends Namespace {
name: string;
}

export const DS = Namespace.create({
// @ts-expect-error ember-source types are wrong
type CreateArgs = { VERSION: string; name: string };

export const DS = (Namespace as unknown as { create(args: CreateArgs): DS }).create({
VERSION: VERSION,
name: 'DS',
});
Expand Down

0 comments on commit 22c88a1

Please sign in to comment.