Skip to content

Commit 28380e1

Browse files
committed
Adding script for generating types
... and not ignoring non-public .d.ts files... because it's fine if they're packaged
1 parent 0149a22 commit 28380e1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default function (source: string): {
2+
options: {};
3+
errors: any[];
4+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default function createControllersModule(config: any): {
2+
finalSource: string;
3+
deprecations: string[];
4+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default function (controllerPath: string, indentationSpaces: number, exportName?: string): string;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"scripts": {
1313
"build": "yarn rollup -c",
14+
"build-types": "yarn tsc",
1415
"test": "yarn run webpack --config test/webpack.config.js && yarn run jest",
1516
"lint": "yarn run eslint src test",
1617
"format": "prettier src/*.ts test/*.js --write",

0 commit comments

Comments
 (0)