Skip to content

Commit

Permalink
@ts-ignore or cast around more private/inconsistently available types
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed Jun 30, 2023
1 parent 00059be commit 316de84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import type { ComponentLike } from '@glint/template';

// @ts-ignore: types for this API is not consistently available (via transitive
// deps) and we do not currently want to make it an explicit dependency. It
// does, however, consistently work at runtime. :sigh:
import { getInternalComponentManager as getComponentManager } from '@glimmer/manager';

/**
Expand Down
3 changes: 3 additions & 0 deletions addon/addon-test-support/@ember/test-helpers/settled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* globals jQuery */
// @ts-ignore: this is private API. This import will work Ember 5.1+ since it
// "provides" this public API, but does not for earlier versions. As a result,
// this type will be `any`.
import { _backburner } from '@ember/runloop';
import Ember from 'ember';

Expand Down
3 changes: 3 additions & 0 deletions addon/addon-test-support/@ember/test-helpers/setup-context.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// @ts-ignore: this is private API. This import will work Ember 5.1+ since it
// "provides" this public API, but does not for earlier versions. As a result,
// this type will be `any`.
import { _backburner, run } from '@ember/runloop';
import { set, setProperties, get, getProperties } from '@ember/object';
import type { Resolver } from '@ember/owner';
Expand Down

0 comments on commit 316de84

Please sign in to comment.