-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a problem introduced in #1049 where the relative imports changed to suit standalone references to these files on disk—but overlooked that the tsconfig had `src` already mapped.
- Loading branch information
Showing
1 changed file
with
30 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
import { Story, InkList } from './src/engine/Story' | ||
import { Compiler } from './src/compiler/Compiler' | ||
import { CompilerOptions } from './src/compiler/CompilerOptions' | ||
import { PosixFileHandler } from './src/compiler/FileHandler/PosixFileHandler' | ||
import { JsonFileHandler } from './src/compiler/FileHandler/JsonFileHandler' | ||
import { Story, InkList } from './engine/Story' | ||
import { Compiler } from './compiler/Compiler' | ||
import { CompilerOptions } from './compiler/CompilerOptions' | ||
import { PosixFileHandler } from './compiler/FileHandler/PosixFileHandler' | ||
import { JsonFileHandler } from './compiler/FileHandler/JsonFileHandler' | ||
|
||
declare interface Inkjs { | ||
/** | ||
* A Story is the core class that represents a complete Ink narrative, and | ||
* manages runtime evaluation and state. | ||
*/ | ||
Story: typeof Story | ||
|
||
/** | ||
* The underlying type for a list item in Ink. | ||
*/ | ||
InkList: typeof InkList | ||
|
||
/** | ||
* Compiles Ink stories from source. | ||
*/ | ||
Compiler: typeof Compiler | ||
|
||
/** | ||
* Metadata options for a compiler pass. | ||
*/ | ||
CompilerOptions: typeof CompilerOptions | ||
|
||
/** | ||
* Resolves and loads Ink sources from a POSIX filesystem. | ||
*/ | ||
PosixFileHandler: typeof PosixFileHandler | ||
|
||
/** | ||
* Resolves and loads Ink sources from a JSON hierarchy. | ||
*/ | ||
JsonFileHandler: typeof JsonFileHandler | ||
} | ||
|
||
declare let inkjs: Inkjs | ||
export default inkjs | ||
export default Inkjs |