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

TS2345 when you specify your element name #118

Closed
adaliszk opened this issue Nov 29, 2017 · 0 comments
Closed

TS2345 when you specify your element name #118

adaliszk opened this issue Nov 29, 2017 · 0 comments
Assignees
Labels

Comments

@adaliszk
Copy link

Code:

@customElement({name: 'my-element'})
class MyCustomElement extends Polymer.Element {
    // ...
}

Error the {name: 'my-element'}:

TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'CustomElementOptions'.
Property 'stripWhitespace' is missing in type '{ name: string; }'.
@Buslowicz Buslowicz self-assigned this Nov 29, 2017
@Buslowicz Buslowicz added the bug label Dec 3, 2017
Buslowicz pushed a commit that referenced this issue Dec 4, 2017
#118: TS2345 when you specify your element name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants