-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from ember-cli/typescript-take-two
TypeScript conversion so we have accurately generated types for consumers
- Loading branch information
Showing
24 changed files
with
916 additions
and
471 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resolution-mode=highest | ||
|
||
# super strict mode | ||
auto-install-peers=false | ||
resolve-peers-from-workspace-root=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type SimpleDomDocument from '@simple-dom/document'; | ||
|
||
export type FastBootDocument = ReturnType<typeof SimpleDomDocument> & { | ||
title?: string; | ||
}; | ||
|
||
export interface PageTitleConfig { | ||
/** The default separator to use between tokens. */ | ||
separator?: string; | ||
|
||
/** The default prepend value to use. */ | ||
prepend?: boolean; | ||
|
||
/** The default replace value to use. */ | ||
replace?: boolean | null; | ||
} | ||
|
||
export interface PageTitleToken extends PageTitleConfig { | ||
id: string; | ||
title?: string; | ||
separator?: string; | ||
prepend?: boolean; | ||
replace?: boolean; | ||
front?: unknown; | ||
previous?: PageTitleToken | null; | ||
next?: PageTitleToken | null; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type PageTitleService from './services/page-title.ts'; | ||
import type { FastBootDocument } from './private-types.ts'; | ||
|
||
export default interface ServiceRegistry { | ||
/** | ||
* The service for managing the title of the page. | ||
*/ | ||
'page-title': PageTitleService; | ||
/** | ||
* ⚠️ This service is not provided by ember-page-title, | ||
* but is needed by ember-page-title | ||
*/ | ||
'-document': FastBootDocument & { title?: string }; | ||
} |
Oops, something went wrong.