@vuepress/core 2.0.0-rc.21 → 2.0.0-rc.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -4
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -180,7 +180,8 @@ interface Hook<Exposed, Normalized = Exposed, Result = Normalized extends (...ar
180
180
  type LifeCycleHook<T extends unknown[] = []> = Hook<(app: App, ...args: T) => PromiseOrNot<void>>;
181
181
  type ExtendsHook<T> = Hook<(extendable: T, app: App) => PromiseOrNot<void>>;
182
182
  type ClientConfigFileHook = Hook<string | ((app: App) => PromiseOrNot<string>), (app: App) => Promise<string>>;
183
- type AliasDefineHook = Hook<Record<string, unknown> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, unknown>>), (app: App, isServer: boolean) => Promise<Record<string, unknown>>>;
183
+ type AliasHook = Hook<Record<string, string> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, string>>), (app: App, isServer: boolean) => Promise<Record<string, string>>>;
184
+ type DefineHook = Hook<Record<string, unknown> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, unknown>>), (app: App, isServer: boolean) => Promise<Record<string, unknown>>>;
184
185
  /**
185
186
  * List of hooks
186
187
  */
@@ -195,8 +196,8 @@ interface Hooks {
195
196
  extendsPage: ExtendsHook<Page>;
196
197
  extendsBundlerOptions: ExtendsHook<BundlerOptions>;
197
198
  clientConfigFile: ClientConfigFileHook;
198
- alias: AliasDefineHook;
199
- define: AliasDefineHook;
199
+ alias: AliasHook;
200
+ define: DefineHook;
200
201
  }
201
202
  /**
202
203
  * Name of hooks
@@ -700,4 +701,4 @@ declare const resolveAppDir: (options: AppOptions) => AppDir;
700
701
  */
701
702
  declare const createPage: (app: App, options: PageOptions) => Promise<Page>;
702
703
 
703
- export { type AliasDefineHook, type App, type AppConfig, type AppConfigBuild, type AppConfigCommon, type AppConfigDev, type AppDir, type AppDirFunction, type AppEnv, type AppOptions, type AppPropertiesBase, type AppPropertiesInitialized, type AppWriteTemp, type BuildApp, type Bundler, type BundlerOptions, type ClientConfigFileHook, type DevApp, type ExtendsHook, type Hook, type HookItem, type HookQueue, type Hooks, type HooksExposed, type HooksName, type HooksNormalized, type HooksResult, type LifeCycleHook, type Page, type PageOptions, type Plugin, type PluginApi, type PluginConfig, type PluginFunction, type PluginObject, type Theme, type ThemeFunction, type ThemeInfo, type ThemeObject, createBuildApp, createDevApp, createPage, preparePageChunk, preparePageComponent, prepareRoutes, resolveAppDir };
704
+ export { type AliasHook, type App, type AppConfig, type AppConfigBuild, type AppConfigCommon, type AppConfigDev, type AppDir, type AppDirFunction, type AppEnv, type AppOptions, type AppPropertiesBase, type AppPropertiesInitialized, type AppWriteTemp, type BuildApp, type Bundler, type BundlerOptions, type ClientConfigFileHook, type DefineHook, type DevApp, type ExtendsHook, type Hook, type HookItem, type HookQueue, type Hooks, type HooksExposed, type HooksName, type HooksNormalized, type HooksResult, type LifeCycleHook, type Page, type PageOptions, type Plugin, type PluginApi, type PluginConfig, type PluginFunction, type PluginObject, type Theme, type ThemeFunction, type ThemeInfo, type ThemeObject, createBuildApp, createDevApp, createPage, preparePageChunk, preparePageComponent, prepareRoutes, resolveAppDir };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-rc.21",
3
+ "version": "2.0.0-rc.23",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -28,10 +28,10 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "vue": "^3.5.13",
31
- "@vuepress/client": "2.0.0-rc.21",
32
- "@vuepress/markdown": "2.0.0-rc.21",
33
- "@vuepress/utils": "2.0.0-rc.21",
34
- "@vuepress/shared": "2.0.0-rc.21"
31
+ "@vuepress/markdown": "2.0.0-rc.23",
32
+ "@vuepress/shared": "2.0.0-rc.23",
33
+ "@vuepress/utils": "2.0.0-rc.23",
34
+ "@vuepress/client": "2.0.0-rc.23"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"