mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
b3e3ff2b3c
* move declaration files into @types; adapt sampler interface; fix compiler error * typing asset/raw-asset * compiler errors * delete asset.d.ts * change tsconfig-gendecls.json * fix
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
|
|
declare interface IWXEventManager<Event> {
|
|
(listener: (event: Event) => void): void;
|
|
}
|
|
|
|
declare namespace wx {
|
|
const onTouchStart: IWXEventManager<TouchEvent>;
|
|
const onTouchMove: IWXEventManager<TouchEvent>;
|
|
const onTouchEnd: IWXEventManager<TouchEvent>;
|
|
const onTouchCancel: IWXEventManager<TouchEvent>;
|
|
}
|