From 40b3b55632b23e812effeb88aa932b4d890aa159 Mon Sep 17 00:00:00 2001 From: juanelas Date: Fri, 1 May 2020 01:40:13 +0200 Subject: [PATCH] fixed typo --- README.md | 21 +++++++++++++-------- src/doc/readme-template.md | 21 +++++++++++++-------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ebc8290..b9bf9eb 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,12 @@ Import your module as : const bigintModArith = require('bigint-mod-arith') ... // your code here ``` - - JavaScript native or TypeScript project (including Angular and React) + - JavaScript native or TypeScript project (including React and Angular) ```javascript import * as bigintModArith from 'bigint-mod-arith' ... // your code here ``` - > BigInt is [ES-2020](https://tc39.es/ecma262/#sec-bigint-objects). In order to use it with TypeScript you should set `lib` (and probably also `target` and `module`) to `esnext` in `tsconfig.json`. - - JavaScript native browser ES6 mod + - JavaScript native browser ES module ```html - + + ... + + + + ... + + ``` -And you could use it like in the following: +An example of usage could be: ```javascript /* Stage 3 BigInts with value 666 can be declared as BigInt('666') diff --git a/src/doc/readme-template.md b/src/doc/readme-template.md index 4c1aad7..95ae1ba 100644 --- a/src/doc/readme-template.md +++ b/src/doc/readme-template.md @@ -30,13 +30,12 @@ Import your module as : const {{PKG_CAMELCASE}} = require('{{PKG_NAME}}') ... // your code here ``` - - JavaScript native or TypeScript project (including Angular and React) + - JavaScript native or TypeScript project (including React and Angular) ```javascript import * as {{PKG_CAMELCASE}} from '{{PKG_NAME}}' ... // your code here ``` - > BigInt is [ES-2020](https://tc39.es/ecma262/#sec-bigint-objects). In order to use it with TypeScript you should set `lib` (and probably also `target` and `module`) to `esnext` in `tsconfig.json`. - - JavaScript native browser ES6 mod + - JavaScript native browser ES module ```html - + + ... + + + + ... + + ``` -And you could use it like in the following: +An example of usage could be: ```javascript /* Stage 3 BigInts with value 666 can be declared as BigInt('666')