Skip to content

Commit

Permalink
Merge pull request #1052 from maetl/ink-decl
Browse files Browse the repository at this point in the history
  • Loading branch information
smwhr authored Apr 10, 2024
2 parents c691374 + a58e550 commit d33ca02
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions ink.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
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
}

Expand Down

0 comments on commit d33ca02

Please sign in to comment.