Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typescript definitions broken #1019

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions ink.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
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 {
Story: typeof Story
InkList: typeof InkList
Compiler: typeof Compiler
CompilerOptions: typeof CompilerOptions
PosixFileHandler: typeof PosixFileHandler
JsonFileHandler: typeof JsonFileHandler
}

declare let inkjs: Inkjs
export = inkjs
export default inkjs
export { Story, InkList } from "./engine/Story";
export { Compiler } from "./compiler/Compiler";
export { CompilerOptions } from "./compiler/CompilerOptions";
export { PosixFileHandler } from "./compiler/FileHandler/PosixFileHandler";
export { JsonFileHandler } from "./compiler/FileHandler/JsonFileHandler";
Loading