Skip to content

Commit b728b89

Browse files
committed
Added some comments to configurePrecision
1 parent 62b4f4e commit b728b89

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"coverage": "coveralls < coverage/lcov.info",
1515
"prepublish": "npm run build",
1616
"build": "run-script-os",
17-
"build:win32": "rm -rf dist && rm -f *.d.ts && rm -f utilities/*.d.ts && rollup index.js --file dist/cjs/index.js --format cjs --exports named && rollup index.js --file dist/esm/index.js --format esm && echo { \"type\": \"module\" } > dist/esm/package.json && echo { \"type\": \"commonjs\" } > dist/cjs/package.json && cd dist && standard --fix */*.js && tsc ../index.js --declaration --allowJs --emitDeclarationOnly --target ESNext --moduleResolution node",
18-
"build:default": "rm -rf dist && rm -f *.d.ts && rm -f utilities/*.d.ts && rollup index.js --file dist/cjs/index.js --format cjs --exports named && rollup index.js --file dist/esm/index.js --format esm && echo '{ \"type\": \"module\" }' > dist/esm/package.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json && cd dist && standard --fix */*.js && tsc ../index.js --declaration --allowJs --emitDeclarationOnly --target ESNext --moduleResolution node"
17+
"build:win32": "rm -rf dist && rm -f *.d.ts precision/*.d.ts && rm -f utilities/*.d.ts && rollup index.js --file dist/cjs/index.js --format cjs --exports named && rollup index.js --file dist/esm/index.js --format esm && echo { \"type\": \"module\" } > dist/esm/package.json && echo { \"type\": \"commonjs\" } > dist/cjs/package.json && cd dist && standard --fix */*.js && tsc ../index.js --declaration --allowJs --emitDeclarationOnly --target ESNext --moduleResolution node",
18+
"build:default": "rm -rf dist && rm -f *.d.ts precision/*.d.ts && rm -f utilities/*.d.ts && rollup index.js --file dist/cjs/index.js --format cjs --exports named && rollup index.js --file dist/esm/index.js --format esm && echo '{ \"type\": \"module\" }' > dist/esm/package.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json && cd dist && standard --fix */*.js && tsc ../index.js --declaration --allowJs --emitDeclarationOnly --target ESNext --moduleResolution node"
1919
},
2020
"devDependencies": {
2121
"decimal.js": "^10.4.3",

precision/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
* - `mod`
2626
* - `toNumber`
2727
*
28+
* ### FAQ:
29+
*
30+
* Q: Why is this not included in the class?
31+
*
32+
* A: This mechanism reimplements a handful of operators. Keeping this method separate makes it possible to tree-shake this code out
33+
* if you don't need it.
34+
*
2835
* @param {import('../logic.d.ts').default | import('../asyncLogic.d.ts').default} engine
2936
* @param {*} constructor
3037
* @param {Boolean} compatible

0 commit comments

Comments
 (0)