Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strictNullChecks support #1

Open
danfinch opened this issue Feb 24, 2017 · 1 comment
Open

strictNullChecks support #1

danfinch opened this issue Feb 24, 2017 · 1 comment

Comments

@danfinch
Copy link

danfinch commented Feb 24, 2017

With "strictNullChecks": true I encounter this error using the decorators from the test fixture:

  Type '(target: Object, propertyName?: string | undefined, parameterIndex?: number | undefined) => void' is not assignable to type 'PropertyDecorator'.
    Types of parameters 'propertyName' and 'propertyKey' are incompatible.
      Type 'string | symbol' is not assignable to type 'string | undefined'.
        Type 'symbol' is not assignable to type 'string | undefined'.
services.ts(65,12): error TS2322: Type '(...args: any[]) => (target: Object, propertyName?: string | undefined, parameterIndex?: number |...' is not assignable to type 'FieldDecoratorFactory'.
  Type '(target: Object, propertyName?: string | undefined, parameterIndex?: number | undefined) => void' is not assignable to type 'PropertyDecorator'.

I'll work around it but thought you might like to know!

@meirgottlieb
Copy link

Thanks. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants