mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 19:12:40 +08:00
typo (#4159)
This commit is contained in:
committed by
Weiliang Wang
parent
3bb398a31f
commit
88c3d0e3c4
@@ -72,7 +72,7 @@ export class WrappedInfo {
|
||||
public direction = 1;
|
||||
public stopped = true;
|
||||
public iterations = 0;
|
||||
public frameIndex: number = NaN;
|
||||
public frameIndex: number = undefined as unknown as number;
|
||||
|
||||
constructor (info?: WrappedInfo) {
|
||||
if (info) {
|
||||
|
||||
@@ -8,7 +8,7 @@ type Constructor<T = {}> = new(...args: any[]) => T;
|
||||
|
||||
export type IEventTargetCallback = (...args: any[]) => void;
|
||||
|
||||
class Empty { protected constructor () {}; }
|
||||
class Empty { protected constructor () {} }
|
||||
|
||||
export function EventTargetFactory<Base extends Constructor<{}>> (b?: Base) {
|
||||
let base = b;
|
||||
|
||||
Reference in New Issue
Block a user