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

profile.set can only set 'cookies' instead of other keys #1240

Closed
lijiarui opened this issue May 28, 2018 · 1 comment
Closed

profile.set can only set 'cookies' instead of other keys #1240

lijiarui opened this issue May 28, 2018 · 1 comment

Comments

@lijiarui
Copy link
Member

lijiarui commented May 28, 2018

As README said:

### Profile

```ts
this.profile.set('config', { id: 1, key: 'xxx' })
const config = await this.profile.get('config')

but when I set as follows"

this.options.profile.set('config', { autoData: this.autoData })

Log as follows

[ts] Argument of type '"config"' is not assignable to parameter of type '"cookies"'.

I think it should set other keys here.

@huan
Copy link
Member

huan commented May 28, 2018

Update code to the latest master branch would be able to let you save other keys for the profile and solve this issue.

However, please make a deep breath first, and be prepared to face the API interface changes. ;-p

@huan huan closed this as completed May 28, 2018
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