Socket
Socket
Sign inDemoInstall

@docusaurus/types

Package Overview
Dependencies
Maintainers
3
Versions
1766
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/types - npm Package Compare versions

Comparing version 2.0.0-alpha.27 to 2.0.0-alpha.28

5

package.json
{
"name": "@docusaurus/types",
"version": "2.0.0-alpha.27",
"version": "2.0.0-alpha.28",
"description": "Common used typings for Docusaurus packages",

@@ -13,5 +13,6 @@ "main": "./src/index.js",

"@types/webpack": "^4.32.0",
"commander": "^2.20.0",
"querystring": "0.2.0"
},
"gitHead": "0cf5a5bf4950d1e34296f02366b9d017820e0801"
"gitHead": "87866c1d1d18e6f68fce476119191dcc5622b368"
}

20

src/index.d.ts
import {Loader, Configuration} from 'webpack';
import {CommanderStatic} from 'commander';
import {ParsedUrlQueryInput} from 'querystring';

@@ -37,3 +38,3 @@

export interface DocusaurusContext {
siteConfig?: Partial<DocusaurusConfig>;
siteConfig?: DocusaurusConfig;
}

@@ -48,11 +49,17 @@

export interface CLIOptions {
[option: string]: any;
export interface StartCLIOptions {
port: string;
host: string;
hotOnly: boolean;
open: boolean;
}
export interface BuildCLIOptions {
bundleAnalyzer: boolean;
}
export interface LoadContext {
siteDir: string;
generatedFilesDir: string;
siteConfig: Partial<DocusaurusConfig>;
cliOptions: CLIOptions;
siteConfig: DocusaurusConfig;
outDir: string;

@@ -92,2 +99,3 @@ baseUrl: string;

getClientModules?(): string[];
extendCli?(cli: CommanderStatic): any;
}

@@ -98,3 +106,3 @@

export interface ChunkRegistry {
importStatement: string;
loader: string;
modulePath: string;

@@ -101,0 +109,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc