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

Conversation

pytlesk4
Copy link
Contributor

No description provided.

@pytlesk4 pytlesk4 requested a review from marbemac July 26, 2019 21:05
@pytlesk4 pytlesk4 self-assigned this Jul 26, 2019
Copy link
Contributor

@marbemac marbemac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Teeeeessstttssss ;)

src/runner.ts Outdated
const parsed = await this.parseResolveResult({
uriResult: result,
// TODO: Is this correct? Result has type any, but uriResult should be type IUriResult.
// uriResult: result,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Porque?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uriResult here is a just an object, but according to types.ts, it should be IUriResult.

result comes from this line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I undid my changes, but we should at the very least update types.ts probably.

src/runner.ts Outdated
fragment: ref.fragment(),
});
if (error) {
throw new Error(`Could not transform dereferenced result for '${ref.toString()}' - ${String(error)}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps could set lookupResult.error rather than throw?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know what you think now after moving where this get's called at.

src/types.ts Outdated
result: any;
fragment: string;
uriResult: IUriResult;
// uriResult: IUriResult;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answered above

@marbemac marbemac merged commit 8cce1b9 into master Jul 30, 2019
@marbemac marbemac deleted the add-transform-derefrence-hook branch July 30, 2019 19:02
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants