Skip to content

Commit

Permalink
chore: add types and update config ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrie Nachtweh committed Oct 12, 2020
1 parent 66d5f2d commit 1934e7a
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 10 deletions.
3 changes: 3 additions & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { formDataToJSON } from './utils/formData';
export { formDataToJSON };
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/types/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/types/utils/formData.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare function formDataToJSON(formData: FormData): object;
//# sourceMappingURL=formData.d.ts.map
1 change: 1 addition & 0 deletions dist/types/utils/formData.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"name": "@ambitiondev/form-utils",
"version": "0.0.2-2",
"description": "A bundle of form utilities for usage in your (web)app",
"main": "dist/form-utils.js",
"main": "dist/form-utils.common.js",
"types": "dist/types/index.d.ts",
"module": "dist/form-utils.esm.js",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c --configProd",
"release": "dotenv release-it",
Expand Down
Empty file removed src/utils/polyfill.ts
Empty file.
36 changes: 27 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
{
"compilerOptions": {
"baseUrl": ".",
"downlevelIteration": true,
"target": "es5",
"lib": [
"es2019",
"dom",
"dom.iterable"
],
}
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": true,
"declarationMap": true,
"declarationDir": "dist/types",
"downlevelIteration": true,
"lib": [
"dom",
"es2017",
"dom.iterable"
],
"module": "es2015",
"moduleResolution": "node",
"noImplicitAny": true,
"outDir": "dist",
"pretty": true,
"removeComments": true,
"rootDir": "src",
"strict": true,
"target": "ES5",
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 1934e7a

Please sign in to comment.