Skip to content

TS 3.2.1 compile errors in Component.ts #36

Description

@enzy
  • error 1
[tsl] ERROR in src\scripts\components\Component.ts(43,36)
      TS2684: The 'this' context of type '((event: FocusEvent) => void) | ((event: FocusEvent) => void) | ((event: Event) => void) | ((event: Event) => void) | ((event: UIEvent) => void) | ((event: AnimationEvent) => void) | ((event: AnimationEvent) => void) | ... 83 more ... | ((event: ClipboardEvent) => void)' is not assignable to method's 'this' of type '(this: this, event: FocusEvent) => void'.
  Type '(event: AnimationEvent) => void' is not assignable to type '(this: this, event: FocusEvent) => void'.
    Types of parameters 'event' and 'event' are incompatible.
      Type 'FocusEvent' is missing the following properties from type 'AnimationEvent': animationName, elapsedTime, pseudoElement
  • error 2
[tsl] ERROR in src\scripts\components\Component.ts(55,15)
      TS2684: The 'this' context of type '((event: DelegateEvent<"close">) => void) | ((event: DelegateEvent<"focusin">) => void) | ((event: DelegateEvent<"focusin">) => void) | ((event: DelegateEvent<"close">) => void) | ... 77 more ... | ((event: DelegateEvent<...>) => void)' is not assignable to method's 'this' of type '(this: this, event: DelegateEvent<"focusin">) => void'.
  Type '(event: DelegateEvent<"animationcancel">) => void' is not assignable to type '(this: this, event: DelegateEvent<"focusin">) => void'.
    Types of parameters 'event' and 'event' are incompatible.
      Type 'DelegateEvent<"focusin">' is not assignable to type 'DelegateEvent<"animationcancel">'.
        Type 'DelegateEvent<"focusin">' is missing the following properties from type 'AnimationEvent': animationName, elapsedTime, pseudoElement

@JirkaVebr ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions