@nimiq/core-types
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "@nimiq/core-types", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Typescript typings for the Nimiq core library", | ||
@@ -5,0 +5,0 @@ "main": "Nimiq.d.ts", |
@@ -1,23 +0,32 @@ | ||
# @nimiq/core types | ||
# @nimiq/core-types | ||
This package provides Typescript types for the Nimiq core library at http://cdn.nimiq.com/web.js. | ||
> ## Deprecation Warning | ||
> Release v1.4.2 of this package is the last release of @nimiq/core-types, | ||
> because the types are now included in the | ||
> [@nimiq/core](https://www.npmjs.com/package/@nimiq/core) package. | ||
This package provides Typescript types for the Nimiq core library. | ||
A global namespace 'Nimiq' is declared. | ||
# Install: | ||
```` | ||
## Installation | ||
```bash | ||
npm install --save-dev @nimiq/core-types | ||
```` | ||
``` | ||
or | ||
```` | ||
```bash | ||
yarn add --dev @nimiq/core-types | ||
```` | ||
``` | ||
# Usage: | ||
Add a .d.ts file to your project folder, e.g. `Nimiq.d.ts`, and make sure it is included in your `.tsconfig`. That file | ||
should contain: | ||
```` | ||
## Usage | ||
Add a .d.ts file to your project folder, e.g. `Nimiq.d.ts`, and make sure it is | ||
included in your `.tsconfig`. That file should contain: | ||
```typescript | ||
// tslint:disable-next-line no-reference | ||
/// <reference path="./node_modules/@nimiq/core-types/Nimiq.d.ts" /> | ||
```` | ||
``` |
Sorry, the diff of this file is too big to display
171049
3406
33