Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Feature/proper AssemblyScript types#32

Merged
evaporei merged 2 commits intographprotocol:near-blocks-examplefrom
streamingfast:feature/proper-assemblyscript-types
Oct 26, 2021
Merged

Feature/proper AssemblyScript types#32
evaporei merged 2 commits intographprotocol:near-blocks-examplefrom
streamingfast:feature/proper-assemblyscript-types

Conversation

@maoueh
Copy link
Copy Markdown

@maoueh maoueh commented Oct 26, 2021

… environment is better defined

This requires a local link to make it work, upcoming `graph-ts` merging of this changes will make it work.

**Note** Needs to wait for `graph-ts` PR to be merged before merging this one.
@maoueh maoueh changed the base branch from master to near-blocks-example October 26, 2021 15:52
maoueh pushed a commit to streamingfast/graph-ts that referenced this pull request Oct 26, 2021
Subgraph projects can now reference this `tsconfig.base.json` to gain proper types detection within VSCode (any editor in fact with a properly configured TypeScript language server)

Subgraph gains propery types definition with by specifying `tsconfig.json` at the root of their project with the following content: (mono repo might need to tweak that a bit)

```
{
    "extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
    "include": ["src"],
}
```

See graphprotocol/example-subgraph#32

At the same time, fixed `graph-ts` project tsconfig referencing `graph` that is not present anymore.
@evaporei evaporei merged commit 1cd8972 into graphprotocol:near-blocks-example Oct 26, 2021
evaporei pushed a commit to graphprotocol/graph-ts that referenced this pull request Oct 26, 2021
* config: Added a tsconfig.base.json for subgraph's project

Subgraph projects can now reference this `tsconfig.base.json` to gain proper types detection within VSCode (any editor in fact with a properly configured TypeScript language server)

Subgraph gains propery types definition with by specifying `tsconfig.json` at the root of their project with the following content: (mono repo might need to tweak that a bit)

```
{
    "extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
    "include": ["src"],
}
```

See graphprotocol/example-subgraph#32

At the same time, fixed `graph-ts` project tsconfig referencing `graph` that is not present anymore.

* Trimmed down ts config files now that we don't have `graph` element

* Made tsconfig files strcitly JSON syntax
@maoueh maoueh deleted the feature/proper-assemblyscript-types branch October 27, 2021 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants