Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update globals.d.ts #214

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import DialogManager from './addon/services/dialog-manager';
import Notifications from './addon/services/notifications';
import Ember from 'ember';

declare module '@ember/service' {
export interface Registry {
Expand All @@ -10,7 +9,3 @@ declare module '@ember/service' {
'carbon.notifications': Notifications;
}
}

declare global {
interface Array<T> extends Ember.ArrayPrototypeExtensions<T> {}
}
4 changes: 4 additions & 0 deletions types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ type Either<T, U> = Only<T, U> | Only<U, T>

declare module '*.scss';

declare module 'ember-template-imports' {
const hbs: any;
export { hbs };
}

declare global {
// Prevents ESLint from "fixing" this via its auto-fix to turn it into a type
Expand Down