Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

pattern libraries are not discoverable #931

Closed
ryanleecode opened this issue Apr 25, 2023 · 5 comments
Closed

pattern libraries are not discoverable #931

ryanleecode opened this issue Apr 25, 2023 · 5 comments

Comments

@ryanleecode
Copy link
Contributor

ryanleecode commented Apr 25, 2023

In most examples we have this import { signature } from "capi/patterns/signature/polkadot.ts" but with the published version of capi I cannot find signature import.

import { signature } from 'capi' --> Module '"capi"' has no exported member 'signature'.


Anything under "capi/patterns" cannot be discovered by intellisense.

@ryanleecode ryanleecode changed the title Cannot sign transactions without signature import cannot sign transactions without signature import Apr 25, 2023
@robocapi robocapi added this to Capi Apr 25, 2023
@tjjfvi
Copy link
Contributor

tjjfvi commented Apr 25, 2023

In node,

import { signature } from "capi/patterns/signature/polkadot"

@ryanleecode
Copy link
Contributor Author

Looks like it does work but lacks discoverability.

@ryanleecode ryanleecode changed the title cannot sign transactions without signature import pattern libraries are not discoverable Apr 25, 2023
@ryanleecode
Copy link
Contributor Author

This video shows what I mean by lack of discoverability

2023-04-26.15-17-52.mp4

@harrysolovay
Copy link
Contributor

@ryanleecode are you sure this is Capi-specific, as opposed to a current limitation of TypeScript's LS implementation?

@harrysolovay
Copy link
Contributor

harrysolovay commented Jun 25, 2023

@github-project-automation github-project-automation bot moved this to Done in Capi Jun 25, 2023
@harrysolovay harrysolovay reopened this Jun 25, 2023
@harrysolovay harrysolovay closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants