Skip to content

Commit

Permalink
Adding typescript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Sep 12, 2019
1 parent 16ff735 commit b5e8c7d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "helpers for getting webpack bundles to be loaded by systemjs",
"main": "src/webpack-config-helpers.js",
"module": "src/systemjs-webpack-interop.js",
"types": "src/systemjs-webpack-interop.d.ts",
"repository": "https://github.com/joeldenning/systemjs-webpack-interop.git",
"author": "Joel Denning <joeldenning@gmail.com>",
"license": "MIT",
Expand Down
15 changes: 15 additions & 0 deletions src/systemjs-webpack-interop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare module "systemjs-webpack-interop" {
export function setPublicPath(
moduleName: string,
rootDirectoryLevel?: number
): void;
export function modifyWebpackConfig(
webpackConfig: WebpackConfig
): WebpackConfig;
export function verifyWebpackConfig(webpackConfig): void;

type WebpackConfig = object | WebpackConfigGetter;
interface WebpackConfigGetter {
(): void;
}
}

0 comments on commit b5e8c7d

Please sign in to comment.