forked from y-lohse/inkjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathink.d.ts
41 lines (34 loc) · 1.06 KB
/
ink.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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