You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.ts(19,23): error TS2345: Argument of type 'Function | Type' is not assignable to parameter of type 'Injectable<IDirectiveFactory>'.
Type 'Function' is not assignable to type 'Injectable<IDirectiveFactory>'.
Type 'Function' is not assignable to type '(string | IDirectiveFactory)[]'.
Property 'push' is missing in type 'Function'.
And here ends my expertise with TypeScript. I an choosing the old syntax for now because I want to get started without setting up an index.ts for our existing application.
The text was updated successfully, but these errors were encountered:
I get a similar error message in my editor (VS Code) but it does not seem to affect my webpack build. I'm using TypeScript 2.0 but am still using Typings (not @types)
The deprecated syntax for registering a directive using
provide
is not working, because there is a type mismatch.This is how it was supposed to work:
And this is the error:
I tried getting more detailed information:
And here is the result:
And here ends my expertise with TypeScript. I an choosing the old syntax for now because I want to get started without setting up an
index.ts
for our existing application.The text was updated successfully, but these errors were encountered: