-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
50 additions
and
51 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
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,17 +1,17 @@ | ||
import {Domain, EmptyRecord, IStoryScript} from "@src/stories/interfaces.ts"; | ||
import {DomainDef, EmptyRecord, IStoryScript} from "@src/stories/interfaces.ts"; | ||
|
||
|
||
/** | ||
* Export type alises for easier use for user-defined data. | ||
*/ | ||
type IStoryScripts<Cast extends Domain> = Record<string, IStoryScript<Cast>>; | ||
type IStoryScripts<Cast extends DomainDef> = Record<string, IStoryScript<Cast>>; | ||
|
||
/** | ||
* Type for used defined input data for an Act. | ||
*/ | ||
type StoryScript<Cast extends Domain = typeof EmptyRecord> = IStoryScript<Cast>; | ||
type StoryScript<Cast extends DomainDef = typeof EmptyRecord> = IStoryScript<Cast>; | ||
|
||
|
||
export type {StoryScript, IStoryScripts, Domain} | ||
export type {StoryScript, IStoryScripts, DomainDef} | ||
|
||
|
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