Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

[Bug Report] vuepress-types #26

Closed
Mister-Hope opened this issue Mar 25, 2020 · 0 comments
Closed

[Bug Report] vuepress-types #26

Mister-Hope opened this issue Mar 25, 2020 · 0 comments

Comments

@Mister-Hope
Copy link
Member

Mister-Hope commented Mar 25, 2020

https://v1.vuepress.vuejs.org/zh/plugin/option-api.html#define

As the docs shown above,

export interface PluginOptionAPI {
  ...
  define?: Record<string, string> | (() => Record<string, string>)
  ...
}

should be changed to

export interface PluginOptionAPI {
  ...
  define?: Record<string, any> | (() => Record<string, any>)
  ...
}

because I can write

{
 define: { aSimpleObject: { a: 1} }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants