Skip to content

Commit

Permalink
tentative fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smwhr committed Jul 31, 2024
1 parent a50a7c0 commit 799d61e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 76 deletions.
74 changes: 40 additions & 34 deletions ink.d.mts
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";

Check failure on line 1 in ink.d.mts

View workflow job for this annotation

GitHub Actions / CI tasks

Cannot find module './engine/Story' or its corresponding type declarations.
import { Compiler } from "./compiler/Compiler";

Check failure on line 2 in ink.d.mts

View workflow job for this annotation

GitHub Actions / CI tasks

Cannot find module './compiler/Compiler' or its corresponding type declarations.
import { CompilerOptions } from "./compiler/CompilerOptions";

Check failure on line 3 in ink.d.mts

View workflow job for this annotation

GitHub Actions / CI tasks

Cannot find module './compiler/CompilerOptions' or its corresponding type declarations.
import { PosixFileHandler } from "./compiler/FileHandler/PosixFileHandler";

Check failure on line 4 in ink.d.mts

View workflow job for this annotation

GitHub Actions / CI tasks

Cannot find module './compiler/FileHandler/PosixFileHandler' or its corresponding type declarations.
import { JsonFileHandler } from "./compiler/FileHandler/JsonFileHandler";

Check failure on line 5 in ink.d.mts

View workflow job for this annotation

GitHub Actions / CI tasks

Cannot find module './compiler/FileHandler/JsonFileHandler' or its corresponding type declarations.

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,
};
41 changes: 0 additions & 41 deletions ink.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"declaration": true
},

"include": ["src/"],
"include": ["src/", "ink.d.mts"],
"exclude": ["node_modules", "**/__tests__/*"]
}

0 comments on commit 799d61e

Please sign in to comment.