-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate test-app to TypeScript
- Loading branch information
Showing
12 changed files
with
84 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<DocsHeader @prefix="ember" /> | ||
{{! @glint-nocheck }} | ||
|
||
<DocsHeader @prefix='ember' /> | ||
|
||
{{outlet}} | ||
|
||
<DocsKeyboardShortcuts /> | ||
<DocsKeyboardShortcuts /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
{{! @glint-nocheck }} | ||
|
||
<DocsViewer as |viewer|> | ||
|
||
<viewer.nav as |nav|> | ||
<nav.section @label="Getting started"/> | ||
<nav.item @label="Installation" @route="docs.installation" /> | ||
<nav.section @label='Getting started' /> | ||
<nav.item @label='Installation' @route='docs.installation' /> | ||
|
||
<nav.section @label="Components usage"/> | ||
<nav.item @label="amount input" @route="docs.components.amount-input" /> | ||
<nav.section @label='Components usage' /> | ||
<nav.item @label='amount input' @route='docs.components.amount-input' /> | ||
</viewer.nav> | ||
|
||
<viewer.main> | ||
<div class="docs-container"> | ||
<div class="docs-section"> | ||
<div class='docs-container'> | ||
<div class='docs-section'> | ||
{{outlet}} | ||
</div> | ||
</div> | ||
</viewer.main> | ||
|
||
</DocsViewer> | ||
</DocsViewer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<DocsHero @byline="a simple money amount input" /> | ||
{{! @glint-nocheck }} | ||
|
||
<DocsHero @byline='a simple money amount input' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
test-app/tests/test-helper.js → test-app/tests/test-helper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import '@glint/environment-ember-loose'; | ||
import type AmountInputRegistry from 'ember-amount-input/template-registry'; | ||
|
||
declare module '@glint/environment-ember-loose/registry' { | ||
export default interface Registry {} | ||
export default interface Registry extends AmountInputRegistry {} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
import type Ember from 'ember'; | ||
|
||
declare global { | ||
// Prevents ESLint from "fixing" this via its auto-fix to turn it into a type | ||
// alias (e.g. after running any Ember CLI generator) | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
interface Array<T> extends Ember.ArrayPrototypeExtensions<T> {} | ||
// interface Function extends Ember.FunctionPrototypeExtensions {} | ||
} | ||
|
||
export {}; | ||
import 'ember-source/types'; | ||
import 'ember-source/types/preview'; |