Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: new export, lint #25

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: new export, lint
  • Loading branch information
tabaktoni committed Nov 19, 2024
commit 1d99c528c9ce2e6e121713786ea2539a106fca63
15 changes: 5 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
## [0.7.7](https://github.com/starknet-io/types-js/compare/v0.7.6...v0.7.7) (2024-06-10)


### Bug Fixes

* export all from abi ([#16](https://github.com/starknet-io/types-js/issues/16)) ([8dcc198](https://github.com/starknet-io/types-js/commit/8dcc198526d6561ce967407aa2ca68e378e2c300))
- export all from abi ([#16](https://github.com/starknet-io/types-js/issues/16)) ([8dcc198](https://github.com/starknet-io/types-js/commit/8dcc198526d6561ce967407aa2ca68e378e2c300))

## [0.7.6](https://github.com/starknet-io/types-js/compare/v0.7.5...v0.7.6) (2024-06-07)


### Bug Fixes

* simgflag ([#15](https://github.com/starknet-io/types-js/issues/15)) ([f3458b9](https://github.com/starknet-io/types-js/commit/f3458b9ae436e0fe61684f8bd3dd5ce09d70e45a))
- simgflag ([#15](https://github.com/starknet-io/types-js/issues/15)) ([f3458b9](https://github.com/starknet-io/types-js/commit/f3458b9ae436e0fe61684f8bd3dd5ce09d70e45a))

## [0.7.5](https://github.com/starknet-io/types-js/compare/v0.7.4...v0.7.5) (2024-06-05)


### Bug Fixes

* export abi internals ([#11](https://github.com/starknet-io/types-js/issues/11)) ([d22b5de](https://github.com/starknet-io/types-js/commit/d22b5decb6847ad70738ba7ea60de01281760427))
- export abi internals ([#11](https://github.com/starknet-io/types-js/issues/11)) ([d22b5de](https://github.com/starknet-io/types-js/commit/d22b5decb6847ad70738ba7ea60de01281760427))

## [0.7.4](https://github.com/starknet-io/types-js/compare/v0.7.3...v0.7.4) (2024-06-04)


### Bug Fixes

* readme ([#10](https://github.com/starknet-io/types-js/issues/10)) ([2636265](https://github.com/starknet-io/types-js/commit/2636265000a723ec39ff71a18ec70e19e4cfc0de))
- readme ([#10](https://github.com/starknet-io/types-js/issues/10)) ([2636265](https://github.com/starknet-io/types-js/commit/2636265000a723ec39ff71a18ec70e19e4cfc0de))

## [0.7.3](https://github.com/starknet-io/types-js/compare/v0.7.2...v0.7.3) (2024-06-04)


### Bug Fixes

* spec update ([#7](https://github.com/starknet-io/types-js/issues/7)) ([5ec8208](https://github.com/starknet-io/types-js/commit/5ec8208f9e495f34472834e01458f4d3f97049d7))
- spec update ([#7](https://github.com/starknet-io/types-js/issues/7)) ([5ec8208](https://github.com/starknet-io/types-js/commit/5ec8208f9e495f34472834e01458f4d3f97049d7))
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,25 @@ npm i @starknet-io/types-js
## Types

#### API [Starknet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/master/api)
```ts
// type import
import type { SomeApiType } from '@starknet-io/types-js'
// or entire namespace import
import { API } from '@starknet-io/types-js'

```ts
// type import
import type { SomeApiType } from '@starknet-io/types-js';
// or entire namespace import
import { API } from '@starknet-io/types-js';
```

#### Wallet API [Wallet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/48e77bf4aaf687388b40b8198e3105401941517a/wallet-api)
```ts
// type import
import type { SomeWalletApiType } from '@starknet-io/types-js'
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js'

```ts
// type import
import type { SomeWalletApiType } from '@starknet-io/types-js';
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js';
```

##### SNIP-12 [Hashing and signing typed structured data](https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-12.md)

- /src/wallet-api/typedData.ts

## Versioning (pending SPEC PR merge)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dapp"
],
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"esModuleInterop": false,
"allowSyntheticDefaultImports": false,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
// "verbatimModuleSyntax": true,
"importHelpers": false, // This is only used for build validation. Since we do not have `tslib` installed, this will fail if we accidentally make use of anything that'd require injection of helpers.

// Language and environment
Expand Down