mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
add more jsb interface info && fix some types (#14628)
* add jsb interface info * mark TODO workaround * fix type * remove some new ts-expect-error * fix type in strict mode
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import { TouchCallback } from 'pal/input';
|
||||
import { screenAdapter } from 'pal/screen-adapter';
|
||||
import { Size, Vec2 } from '../../../cocos/core/math';
|
||||
import { EventTarget } from '../../../cocos/core/event';
|
||||
@@ -31,6 +30,8 @@ import { touchManager } from '../touch-manager';
|
||||
import { macro } from '../../../cocos/core/platform/macro';
|
||||
import { InputEventType } from '../../../cocos/input/types/event-enum';
|
||||
|
||||
export type TouchCallback = (res: EventTouch) => void;
|
||||
|
||||
declare const jsb: any;
|
||||
|
||||
export class TouchInputSource {
|
||||
|
||||
Reference in New Issue
Block a user