-
Notifications
You must be signed in to change notification settings - Fork 395
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
wire adapter typescript def is incorrect #149
Comments
@caridy You mentioned there were other gaps in engine.d.ts. Can we merge this with that issue or repurpose this to cover it all? |
The idea is to eliminate The concern is mostly that a generated file will contain everything, while devs will only have access to some things, other are meant to be used for other tools (e.g.: Aura), and we haven't found an easy way to have that split in the types as well. |
For the lwc-language-service we will also need an updated engine.d.ts for 214 |
Here I was adding a missing method: #60 |
Is this still an issue @rsalvador @kevinv11n ? |
We can close this, the wire def was updated here: a091304 |
Config bag needs to be optional. I'll issue a PR shortly. |
Description
In https://github.com/salesforce/lwc/blob/master/packages/lwc-engine/types/engine.d.ts#L75 we define
wire
like this:export function wire(adapterId: string, adapterConfig: Object): void;
This is not correct. It needs to be defined as a property and method decorator.
As a comparison, see how
track
is defined:export const track: PropertyDecorator;
Steps to Reproduce
The text was updated successfully, but these errors were encountered: