Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Type 'Promise<void>' is not assignable to type 'void | (() => void)'.

Embarrassed Echidna answered on October 13, 2020 Popularity 10/10 Helpfulness 2/10

Contents


More Related Answers

  • Type 'MutableRefObject<undefined>' is not assignable to type 'RefObject<HTMLInputElement>'. Types of property 'current' are incompatible. Type 'undefined' is not assignable to type 'HTMLInputElement | null'. TS2322
  • Argument of type 'AsyncThunkAction<any, void, {}>' is not assignable to parameter of type 'AnyAction'.
  • Argument of type '() => Promise<void>' is not assignable to parameter of type 'EffectCallback'.
  • Type 'void' is not assignable to type 'MouseEventHandler<HTMLButtonElement> | null | undefined'.
  • type 'null' is not assignable to type
  • string is not assignable to type never
  • Type 'string | undefined' is not assignable to type 'string'.
  • 'this' context of type 'void' is not assignable to method's 'this' of type 'Observable<{}>'.
  • is not assignable to type 'BodyInit | null | undefined'
  • Type 'Event' is not assignable to type 'string'
  • type 'object undefined' is not assignable to type 'object'
  • Type 'string | undefined' is not assignable to type 'string'.
  • Type 'void' is not assignable to type '((this: GlobalEventHandlers, ev: MouseEvent) => any) | null'
  • Type 'string' is not assignable to type 'number'
  • type 'undefined' is not assignable to type
  • typescript Type '(string | undefined)[]' is not assignable to type 'string[]'

  • Type 'Promise<void>' is not assignable to type 'void | (() => void)'.

    1
    Popularity 10/10 Helpfulness 2/10 Language typescript
    Tags: typescript
    Link to this answer
    Share Copy Link
    Contributed on Oct 13 2020
    Embarrassed Echidna
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.