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

PKG -- [sdk] TS voucher #1803

Merged

Conversation

nialexsan
Copy link
Contributor

No description provided.

nialexsan and others added 30 commits November 1, 2023 16:04
* switch to uuid from @onflow/utils-uid

* create tsconfigs

* typedefs in ts

* types for actor util

* types for address util

* Revert "switch to uuid from @onflow/utils-uid"

This reverts commit 2a15ef5.

* PKG -- [util-actor] converted to ts

* updated tsconfig

* fixed ts types generation

* Resolve circular dependency

* ts rlp

* change type location

* more types

* build types during regular build

* fix tests

* VSN -- [root] Changeset

* Merge remote-tracking branch 'origin/master' into nialexsan/add-types

* Revert "Resolve circular dependency"

This reverts commit 36efc7d.

* update lock

* VSN -- [root] changeset
Implements typescript support for: @onflow/rlp, @onflow/util-uid, @onflow/util-template, @onflow/util-logger, @onflow/util-invariant, @onflow/util-encode-key, @onflow/util-address
* [WIP] Convert @onflow/types to TS

* stash

* kind of working

* fix package.json

* fix dictionary

* fix tests

* stash

* strong type tests

* remove any

* rename

* changeset
* PKG -- [util-actor] Enhance TS support

* rename handlerfnmap
* PKG -- [types] Simplify generics

* Fix array

* Fix Array
* PKG -- [config] Add TypeScript

* Changeset

* fixup

* Remove unnecessary generic from util-actor

* remove non null assertions

---------

Co-authored-by: Alex <[email protected]>
@nialexsan nialexsan changed the title Nialexsan/ts conversion voucher recolve merge conflict Nialexsan/ts conversion voucher resolve merge conflict Nov 6, 2023
@nialexsan nialexsan marked this pull request as ready for review November 8, 2023 21:32
@nialexsan nialexsan requested a review from a team as a code owner November 8, 2023 21:32
Base automatically changed from nialexsan/ts-conversion-fixed-merge-conflicts to master November 27, 2023 21:33
Copy link
Contributor

@jribbink jribbink left a comment

Choose a reason for hiding this comment

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

Great work, just same comment about interface naming but other than that everything looks great

packages/sdk/src/encode/encode.ts Outdated Show resolved Hide resolved
packages/sdk/src/encode/encode.ts Outdated Show resolved Hide resolved
packages/sdk/src/encode/encode.ts Outdated Show resolved Hide resolved
packages/sdk/src/encode/encode.ts Outdated Show resolved Hide resolved
packages/sdk/src/encode/encode.ts Outdated Show resolved Hide resolved

export function sansPrefix(address: null): null;
export function sansPrefix(address: string): string;
export function sansPrefix(address: string | null): string | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

without this overload ts fails to compile

Copy link
Contributor

Choose a reason for hiding this comment

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

oh ok gotcha

@nialexsan nialexsan requested a review from jribbink November 29, 2023 15:11
@nialexsan nialexsan changed the title Nialexsan/ts conversion voucher resolve merge conflict PKG -- [sdk] TS voucher Nov 29, 2023
Copy link
Contributor

@jribbink jribbink left a comment

Choose a reason for hiding this comment

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

LGTM

@nialexsan nialexsan merged commit f90ee4d into master Nov 29, 2023
1 check passed
@nialexsan nialexsan deleted the nialexsan/ts-conversion-voucher-recolve-merge-conflict branch November 29, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants