-
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.
- Loading branch information
Showing
3 changed files
with
41 additions
and
76 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,41 +1,47 @@ | ||
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' | ||
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 | ||
export default interface inkjs { | ||
/** | ||
* A Story is the core class that represents a complete Ink narrative, and | ||
* manages runtime evaluation and state. | ||
*/ | ||
Story: typeof Story; | ||
|
||
/** | ||
* Compiles Ink stories from source. | ||
*/ | ||
Compiler: typeof Compiler | ||
/** | ||
* The underlying type for a list item in Ink. | ||
*/ | ||
InkList: typeof InkList; | ||
|
||
/** | ||
* Metadata options for a compiler pass. | ||
*/ | ||
CompilerOptions: typeof CompilerOptions | ||
/** | ||
* Compiles Ink stories from source. | ||
*/ | ||
Compiler: typeof Compiler; | ||
|
||
/** | ||
* Resolves and loads Ink sources from a POSIX filesystem. | ||
*/ | ||
PosixFileHandler: typeof PosixFileHandler | ||
/** | ||
* Metadata options for a compiler pass. | ||
*/ | ||
CompilerOptions: typeof CompilerOptions; | ||
|
||
/** | ||
* Resolves and loads Ink sources from a JSON hierarchy. | ||
*/ | ||
JsonFileHandler: typeof JsonFileHandler | ||
/** | ||
* 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 { | ||
Story, | ||
InkList, | ||
Compiler, | ||
CompilerOptions, | ||
PosixFileHandler, | ||
JsonFileHandler, | ||
}; |
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