Skip to content

Commit 6d0d282

Browse files
committed
type (asset.d.ts add): declare module '*.png'
1 parent 120e29f commit 6d0d282

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/display/asset.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// @ts-ignore
21
import monsterUrl from '../../asset/monster/monster-smooze-A.png'
3-
// @ts-ignore
42
import playerUrl from '../../asset/player/rarity-930-1.png'
53
import { promiseObjectAll } from '../util/promise'
64
import { loadImage } from './loadImage'

src/type/asset.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.png'

0 commit comments

Comments
 (0)