Skip to content

Commit

Permalink
💩 Inline possible asset types in res.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Dec 21, 2023
1 parent ba58a22 commit 3071a9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ct.release/res.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {required} from './u';
import type {TextureShape, ExportedTiledTexture, ExportedFolder, ExportedAsset, AssetType} from '../node_requires/exporter/_exporterContracts';
import type {TextureShape, ExportedTiledTexture, ExportedFolder, ExportedAsset} from '../node_requires/exporter/_exporterContracts';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type {sound as pixiSound, Sound} from 'node_modules/@pixi/sound';
import {pixiSoundPrefix, exportedSounds, soundMap, pixiSoundInstances} from './sounds.js';

type AssetType = 'template' | 'room' | 'sound' | 'style' | 'texture' | 'tandem' | 'font' | 'behavior';

import * as pixiMod from 'node_modules/pixi.js';
declare var PIXI: typeof pixiMod & {
sound: typeof pixiSound
Expand Down
1 change: 0 additions & 1 deletion src/node_requires/exporter/_exporterContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,3 @@ export type ExportedFolder = {
name: string,
entries: (ExportedAsset | ExportedFolder)[]
};
export type AssetType = resourceType;

0 comments on commit 3071a9b

Please sign in to comment.