4d4f845b9e
Turning the "importsNotUsedAsValues" TS config value to "error". This will require us to use `import type` instead of `import` when we are importing a value that is only used as a type (and therefore that is dropped by the Typescript compiler). Why this change? This is a requirement to be able to use Svelte in the future. See https://github.com/sveltejs/svelte-preprocess/issues/206#issuecomment-663193798
11 lines
429 B
TypeScript
11 lines
429 B
TypeScript
import type {GameScene} from "../Game/GameScene";
|
|
import type {ITiledMapObject} from "../Map/ITiledMap";
|
|
import type {ActionableItem} from "./ActionableItem";
|
|
import LoaderPlugin = Phaser.Loader.LoaderPlugin;
|
|
|
|
export interface ItemFactoryInterface {
|
|
preload: (loader: LoaderPlugin) => void;
|
|
create: (scene: GameScene) => void;
|
|
factory: (scene: GameScene, object: ITiledMapObject, state: unknown) => ActionableItem;
|
|
}
|